compiling the os independent code

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.
Post Reply
maurya shah

compiling the os independent code

Post 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
Thomas

RE:compiling the os independent code

Post 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... :)
Post Reply