Go Down

Topic: Suggest allowing changes to compiler flags (Read 3 times) previous topic - next topic

Nick Gammon

I asked about this elsewhere with no response, so I gather it can't be done yet.

Since this part of the forum is for "mods to the IDE" I suggest this:

Make the compiler flags configurable (eg. an entry in preferences.txt). That way you can ramp up warning levels, change the optimization amount, and do other similar and useful things.

The default could be the current behaviour, but this part could be modified:

Code: [Select]
-g -Os -w -fno-exceptions -ffunction-sections -fdata-sections

For example, you might want to enable exceptions, or change to -O3 or something. Certainly you might want more warnings.


You sound like the type of person who might enjoy another IDE

NetBeans and Eclipse are both awesome, and since you seem to be familiar with the compiler options, using a makefile should be no problem for you
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Nick Gammon

Thanks. I'll check them out.

I tried to use low-level gcc with make, and whilst I understand how they work together, I see that the default IDE does quite a bit of work behind the scenes. It seemed a shame to throw all that away, just to get some extra warnings, but it is always nice to have other options.

Thanks again, obviously there are lots of ways of approaching this. :-)

Go Up