Page 1 of 1

compiling the os independent code

Posted: Wed Apr 11, 2001 11:00 pm
by maurya shah
hi,
can comeone tell me how do i complie an os
independent bootup assembly code, i tried to use the
gcc cross complilation option, it hangs the boot
process.
regards,
maurya

RE:compiling the os independent code

Posted: Thu Apr 12, 2001 11:00 pm
by Thomas
>On 2001-04-12 22:10:27, maurya shah wrote:
>hi,
>can comeone tell me how do i complie an os
>independent bootup assembly code, i tried to use the
>gcc cross complilation option, it hangs the boot
>process.
>regards,
>maurya
BTW: Every bootstrap code is os independant, becouse at that time no os is running :) For the boot process don't use gcc, it could (and for the x86 architecture it surely will) generate an invalid code (eg. 32-bit for x86 real mode, when it should be 16-bit) Instead use NASM or some similar assembly code compiler. Don't know if you were talking about this, but what the hell... :)