Page 1 of 1
using freepascal for osdev
Posted: Wed Aug 15, 2007 1:42 pm
by Meshounah
due to my GCC woes i would like to use freepascal for os dev but my killer question is... how? from the ide i can choose many target platforms but raw binary is not one of them.
Posted: Wed Aug 15, 2007 3:30 pm
by Pavia
it is easy.
You be able compiller to ELF, or Object File.
And use linker to get bin file.
For example.
fpc -Rintel kernel.pas
ld -o "kernel.bin" kernel.o
objcopy.exe -O binary "kernel.bin"
Last comand used for convert from PE to Binary.
I not used options "ld --oformat binary"
because windows ld have bug.
Posted: Wed Aug 15, 2007 3:42 pm
by Meshounah
ok thank you it worked
another quick question where can i find objcopy?