compile OS

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
parsgiga

compile OS

Post 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?
Cjmovie

Re:compile OS

Post by Cjmovie »

You might want to check here first.....
http://www.osdev.org/osfaq2/index.php/Foreword
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:compile OS

Post 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 ...
parsgiga

Re:compile OS

Post 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)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:compile OS

Post by Solar »

Please, please please visit the FAQ.
Every good solution is obvious once you've found it.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:compile OS

Post 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).
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Post Reply