Is Assemply Aboslutly needed?
Is Assemply Aboslutly needed?
Is Assemply code really needed for a OS?
Re: Is Assemply Aboslutly needed?
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.
- JackScott
- 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?
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)?