Is there a way to set additional c++ compiler options???


i to  able add additional  c++ compiler options following:

1. write file consisting of output of preprocessing stage (i.e. file containing source code file macros expanded). easy enough -e option if manually execute: gcc -e ....

2. write file consisting of assembler code generated compiler. allow me see , study, in meaningful way, code generated , executed.

i've looked @ arduino preferences file see if there exists flag enable behavior did not find any.  searching arduino related files did not reveal compiler invoked not make modifications. so, there way can or can arduino development team add functionality?

the easiest way things use verbose compilation figure out has put temporary files, , open cli window, connect directory, , cut&paste appropriate commands, add modifications, , run them manually. (using ide-preprocessed files built.)

for example, "verifying" blink on mac shows:

/applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/tools/avr/bin/avr-g++ -c -g -os -w -fno-exceptions -ffunction-sections -fdata-sections -mmd -mmcu=atmega328p -df_cpu=16000000l -darduino=152 -i/applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/arduino/avr/cores/arduino -i/applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/arduino/avr/variants/standard /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/t/build2340544114733970054.tmp/blink.cpp -o /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/t/build2340544114733970054.tmp/blink.cpp.o

so do:

billw-macosx-2<9997> cd /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/t/build2340544114733970054.tmp/

billw-macosx-2<9999> /applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/tools/avr/bin/avr-g++ -c -g -os -w -fno-exceptions -ffunction-sections -fdata-sections -mmd -mmcu=atmega328p -df_cpu=16000000l -darduino=152 -i/applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/arduino/avr/cores/arduino -i/applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/arduino/avr/variants/standard -e -o blink.e blink.cpp

billw-macosx-2<10000> /applications/arduino/arduino-1.5.2.app/contents/resources/java/hardware/tools/avr/bin/avr-objdump -i. -s blink.cpp.elf >blink.s 



Arduino Forum > Using Arduino > Programming Questions > Is there a way to set additional c++ compiler options???


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support