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?
compile OS
Re:compile OS
You might want to check here first.....
http://www.osdev.org/osfaq2/index.php/Foreword
http://www.osdev.org/osfaq2/index.php/Foreword
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:compile OS
check GCC and NASM manualsparsgiga wrote: How can I compile my source code of OS by gcc and nasm
Check your linker (ld)'s manual (hint look out for -oformat=binary)How can I make binery code by thoese?
Load your kernel at a know place and jump there. E.g.How jump boot sectore to kernel?
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.
Re:compile OS
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)
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
Please, please please visit the FAQ.
Every good solution is obvious once you've found it.
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:compile OS
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).
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
BlueillusionOS iso image