Setting gcc parameters within IDE

I'd like to have the IDE default to producing a linker map file when it builds, like adding: -Wl,-Map,$*.map to LDFLAGS in a makefile.

I couldn't find any preferences.txt setting or other option that would control gcc parameters. Did I miss it? Or does it not exist?



You should be able to set those options in the makefile at:


If you use the IDE to compile your sketches then (at least this is my understanding) the makefile is not used.

In you find the compiler flags... this means that you have to modify this java file and build your own Arduino IDE...

But you can use the makefile with the command line tools. Copy the makefile to your sketch directory and call make... but I am not sure if the makefile is up to date.