Re: [Geekos-devel] Some questions about OS development
Status: Pre-Alpha
Brought to you by:
daveho
From: David H. <da...@cs...> - 2002-10-24 14:35:04
|
On Thu, Oct 24, 2002 at 04:46:51AM -0700, Behrang Saeedzadeh wrote: > Hi > > It seems that each os has a different binary format > for executables. But It seems that lots of OSes are > built with compilers that produce executables for > certain machines such as Win, Linux, and... Windows and Linux aren't machine-specific. (Well, Windows is now, but Linux runs on all types of machines). Windows does have its own executable format, PECOFF. Linux uses the ELF format, as does almost every free Unix-like OS, and many hobby operating systems. > Do these > OSes use the same binary format of that Win, Linux, > or...? I'm not aware of any OSes which use a format other than PECOFF or ELF. > If so, is it necessary to rewrite an other > compiler (or at least code generator) to have a custom > binary format? If you want a custom binary format, then yes, some part of the compiler toolchain will need to be modified. If you're thinking about developing your own operating system, I'd recommend using ELF, since it is the best-supported format in the GNU toolchain. Windows PECOFF is also a good choice if you're using cygwin. -Dave |