If you have a boot loader and you want it to execute a c program then the boot loader can't just simply use the call statement to do it. Your boot load will have to first load the c program into memory and then start executing it at the beginning of the program, which will normally NOT be main(). C compilers add a lot of code to the beginning of the program, and the last thing that startup code does is call main().
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
If this is a custom environment then you'll probably have to create a special linking/compiling process so your exe will execute.
In truth I'm not really sure what your after? The boot floppy, is it one you created or is it one you downloaded? The kernel I have the same questions, is it one you created or is it one you downloaded?
gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387