im going to make an operating system...after completing my boot and kernel work....not i have just created a simple c++ program for my os....now i wan to convert that c++ .cpp into .bin so i can write it into floppy sector...bcoz my os will be base on floppy disk...

question is how i will compile .cpp code into .bin??any solution??

Raza.
hasnainr1@hotmail.com
hasnainr1@yahoo.co.uk

im going to make an operating system...after completing my boot and kernel work....not i have just created a simple c++ program for my os....now i wan to convert that c++ .cpp into .bin so i can write it into floppy sector...bcoz my os will be base on floppy disk...

question is how i will compile .cpp code into .bin??any solution??

This is just a guess...

g++ --static bootsector.cpp -o bootsector
objcopy -O binary bootsector bootsector.bin
then write it to the bootsector of the floppy