Page 1 of 1
Is Assemply Aboslutly needed?
Posted: Fri Jun 20, 2008 6:14 pm
by Tivoilos
Is Assemply code really needed for a OS?
Re: Is Assemply Aboslutly needed?
Posted: Fri Jun 20, 2008 6:18 pm
by Alboin
For things like interrupt handler stubs and such, you really can't go without it unless you're using compiler specific methods.
Re: Is Assemply Aboslutly needed?
Posted: Fri Jun 20, 2008 6:19 pm
by Tivoilos
Alrighty
Re: Is Assemply Aboslutly needed?
Posted: Fri Jun 20, 2008 6:25 pm
by JackScott
Yes. There is no other language that can be used to call LIDT, LGDT, and other related functions. And these calls must be made to have a functioning operating system. However, these calls can be made from inline assembly within C files (at least, with a certain amount of messing around to get it play nice). A better question would be, do I really need to write assembly files (.asm) or can it all be put in other source files (.c, .cpp, etc)?