Starting to use C, too!

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
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

Starting to use C, too!

Post by XCHG »

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.
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:

Post by JackScott »

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.
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

Post by XCHG »

Alright, thanks; I chose GCC.
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.
Post Reply