Common pitfalls

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
heat
Member
Member
Posts: 103
Joined: Sat Mar 28, 2015 11:23 am
Libera.chat IRC: heat

Re: Common pitfalls

Post by heat »

Assembly is not the best language for OSDeving, it's incredibly architecture dependent and trying to port a big kernel to another architecture would require you to virtually rewrite the whole kernel. C is perfectly good for OSDev, hell, even C++ is fine. Assembly, however, is not fine if you want to run on multiple architectures. You're just spitting bullshit to beginners, misguiding them. You called iansjack a liar, yet you're the one lying and giving bad advice to beginners. You're rude to people, and you just say nonsense. Stop, please.
If some of you people keep insisting on having backwards compatibitity with the stone age, we'll have stone tools forever.
My Hobby OS: https://github.com/heatd/Onyx
LtG
Member
Member
Posts: 384
Joined: Thu Aug 13, 2015 4:57 pm

Re: Common pitfalls

Post by LtG »

Elttob wrote:And anyway, most people do it in C. If I do it in C, then more people can help out if I run into a serious issue.
That's also a good reason to use C, and another reason to use pretty much any higher level language is that most people here don't have that much time on their hands (even if it sometimes looks like they do) and reading assembly takes more time to reason about potential corner cases than C does. I for instance rarely try to decipher other people's assembly, unless it's something obvious.

Or maybe it's just me =)
User avatar
zaval
Member
Member
Posts: 659
Joined: Fri Feb 17, 2017 4:01 pm
Location: Ukraine, Bachmut
Contact:

Re: Common pitfalls

Post by zaval »

one common pitfall is distraction. if you find yourself involved in forum debates on clueless topics like "use assembly/don't use assembly", it's a sign of a distraction gotcha.
ANT - NT-like OS for x64 and arm64.
efify - UEFI for a couple of boards (mips and arm). suspended due to lost of all the target park boards (russians destroyed our town).
Post Reply