Question

Is there a smaller download for GCC if the only language you need to be compiled is C? TCC is a fantastic option for windows, however I need it to compile on several platforms. I also like the fact that GCC is very commonly used.

If there is not a specific download that is smaller, would I be able to weed out the data in the downloaded package that is not needed to compile C? Would there be issues to this approach?

Was it helpful?

Solution

When you build GCC, you must first configure it.

Specifying --enable-languages=c will constrain your build to only the C language.

There are many other options that allow you to tailor GCC to your needs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top