No! Portability is necessary. You can't think that way...mathematician wrote:Windows was written with the idea that it should be portable, but how many platforms has Microsoft actually ported it to? Apart from the 3% of the market claimed by the Mac, the PC standard rules in the world of desktop computers, that's the point, and portability is a non-issue.
And portability is more than just being able to easily get the OS to run on another architecture. It's closely linked to extensibility. If your kernel architecture is able to adapt to any page size, for example, it's a good start.
For example, I consider that being able to use CPU features that are specific from some particular version of a CPU architecture (without breaking compatibility with other versions) is a portability issue.
And don't say that you will never be porting your OS to something different, because if today you write something that will run specifically on x86 Protected Mode, then you will run into problems when you try to make it take advantage of x86-64 Long Mode...
And if you don't design it correctly, then you may be unable to port it without breaking compatibility with PM-only CPUs.
JJ