Page 1 of 1
compile OS
Posted: Wed Oct 19, 2005 7:52 pm
by parsgiga
How can I compile my source code of OS by gcc and nasm
How can I make binery code by thoese?
How jump boot sectore to kernel?
Re:compile OS
Posted: Wed Oct 19, 2005 8:17 pm
by Cjmovie
Re:compile OS
Posted: Thu Oct 20, 2005 2:17 am
by Pype.Clicker
parsgiga wrote:
How can I compile my source code of OS by gcc and nasm
check GCC and NASM manuals
How can I make binery code by thoese?
Check your linker (ld)'s manual (hint look out for -oformat=binary)
How jump boot sectore to kernel?
Load your kernel at a know place and jump there. E.g.
Code: Select all
jmp 0x1000:0000 ;; for real-mode kernel loaded at 64K
jmp 0x8:0x10000 ;; for protected-mode kernel loaded at 64K
;; assuming your first selector is 0-based kernel code.
We have the "barebones" page that can help you bootstrapping, but honnestly, i hope you're realizing you're asking trivialities here ...
Re:compile OS
Posted: Thu Oct 20, 2005 7:28 pm
by parsgiga
Thank You.
I can make a binery C and Asemblly source code
But,don't know load kernel.
( My kernel is in the floppy disk)
Re:compile OS
Posted: Thu Oct 20, 2005 10:04 pm
by Solar
Please, please please visit the
FAQ.
Re:compile OS
Posted: Mon Oct 24, 2005 2:53 pm
by distantvoices
The FAQ is exactly the location you will want to visit now, isn't it?
What's this, I'm away for four days, and there's but a rumble around with a buncha noobs asking quite ... questions (admittedly, not this one).