Page 1 of 1
do you need ASM?
Posted: Tue Feb 21, 2006 12:00 am
by zzz
is there anyway to write an os without ASM. I am not very good with low level stuff.
Re: do you need ASM?
Posted: Tue Feb 21, 2006 12:00 am
by JAAman
you can write much of it without ASM, but writing an OS is writing 'low-level stuff' (no matter what language you use), so if you don't want to write low-level stuff, don't write an OS
however, if you simply mean your not good with ASM (and don't want to learn), then i suggest you start with a pre-made bootloader, and start writing in C (or another language)
some things must be done in ASM, but not much, though a good understanding of ASM is very valuable!!
Re: do you need ASM?
Posted: Tue Feb 21, 2006 12:00 am
by zzz
Ill be writing it in c++. Do i have to make any sort of contact between the bootloader and os or does the bootloader just.. load it? I think that makes sense...
Re: do you need ASM?
Posted: Tue Feb 21, 2006 12:00 am
by carbonBased
You should read up on how bootloaders work.
Every system is different, and will enforce different requirements on your kernel (GRUB will require it to be of a certain object format, or have a header inserted at the beginning of the file, whereas others will assume that the instructions at offset 0 of the kernel are immediately executable, etc, etc).
Also, keep in mind that you'll have to write your own runtime support in order to make use of much of the features of C++.
--Jeff