i would like help to start programming charger for any os like grub or lilo ...
some people said me starting with assembly code !!!!
i would like help to start programming charger for any os like grub or lilo ...
some people said me starting with assembly code !!!!
You probably won't write a "loader" without using assembler - a large portion will be C, but you'll be unable to write ALL the code in C, since for one thing, you will be forced to write the MBR code in a 512 byte block which runs in real-mode, and unless you are really determined that you should run ALL of the code in real-mode, you'll have to write a bit of code to take you from real to protected mode.
The MBR code will most likely have to be written in real-mode and has to fit in 512 bytes, including any data you need.
Note also that writing a loader is not easy - it relies on understanding A LOT about how the system architecture works, BIOS calls, hardware access, and such things. If you are not familiar with many of those concepts, make sure you plan on plenty of time to figure it out.
Note on the English language: A charger is something you connect to your phone or digital camera to "fill up" the batteries. It may also be a large horse used in ancient times in wars. It is not a loader, hence "lilo" is not called "lich", but "lilo" [LInux LOader].
A loader is someone or something that transfers a load (e.g. someone working at an airport loading bags or goods on planes, or in a harbour loading boats), or in computer terms, a piece of code that loads up the initial OS portions to get the OS into memory.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
loaders, in software terms, also load shared libraries, plugins and, naturally, loadable kernel modules.
Originally Posted by Jeff Henager
Just thought I should state it clearly: GRUB and LILO are boot loaders, not operating systems (OSes).
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.