Is Assemply Aboslutly needed?

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
Tivoilos
Posts: 7
Joined: Mon May 26, 2008 5:41 pm

Is Assemply Aboslutly needed?

Post by Tivoilos »

Is Assemply code really needed for a OS?
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: Is Assemply Aboslutly needed?

Post by Alboin »

For things like interrupt handler stubs and such, you really can't go without it unless you're using compiler specific methods.
C8H10N4O2 | #446691 | Trust the nodes.
Tivoilos
Posts: 7
Joined: Mon May 26, 2008 5:41 pm

Re: Is Assemply Aboslutly needed?

Post by Tivoilos »

Alrighty
User avatar
JackScott
Member
Member
Posts: 1036
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
Matrix: @JackScottAU:matrix.org
GitHub: https://github.com/JackScottAU
Contact:

Re: Is Assemply Aboslutly needed?

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