do you need ASM?

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
zzz
Posts: 6
Joined: Fri Feb 17, 2006 12:00 am

do you need ASM?

Post by zzz »

is there anyway to write an os without ASM. I am not very good with low level stuff.
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: do you need ASM?

Post 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!!
zzz
Posts: 6
Joined: Fri Feb 17, 2006 12:00 am

Re: do you need ASM?

Post 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...
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Re: do you need ASM?

Post 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
Post Reply