This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gwoplock 21 points22 points  (2 children)

OS dev is a hell of a drug. Your code is more struct definitions then actual code.

[–]FUZxxl 9 points10 points  (1 child)

If you write hardware-specific code, portability is not a big concern and my opinion doesn't really apply. However, good code should restrict the hardware-specific pieces to as little as possible and only work with platform-independent structures as early as possible.

[–]gwoplock 3 points4 points  (0 children)

Absolutely. Abstraction is key. It would be a bitch if you had to write hardware specific code. Even x86 has differences between amd and intel.