Starting to use C, too!
Starting to use C, too!
I have been developing my Operating System's kernel and drivers in Assembly and I truly get a kick out of that every day. However, I am starting to believe that I am going to need to learn how to develop kernels/drivers in C also. So if anybody could tell me about what compiler I should use/what compiler has a better support for Inline Assembly or a better optimization support and that sort of stuff, I would really appreciate it. What I expect from the C compiler is to give me a simple bin file! Thanks guys.
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
- 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:
RTFW?
http://www.osdev.org/wiki/Tool_Comparison
http://www.osdev.org/wiki/GCC
http://www.osdev.org/wiki/GCC_Cross-Compiler
That should get you on the road. Most people on the forum use GCC, it's good for inline assembly, and it's reasonably optimised (but not as well as others, such as the intel compiler, etc). Oh, and it's free.
http://www.osdev.org/wiki/Tool_Comparison
http://www.osdev.org/wiki/GCC
http://www.osdev.org/wiki/GCC_Cross-Compiler
That should get you on the road. Most people on the forum use GCC, it's good for inline assembly, and it's reasonably optimised (but not as well as others, such as the intel compiler, etc). Oh, and it's free.