Author Topic: Default compiler settings  (Read 3982 times)

Offline zainka

  • Multiple posting newcomer
  • *
  • Posts: 14
Default compiler settings
« on: October 12, 2009, 03:39:41 pm »
Hi

Under menue  Settings => Compiler and debugger settings  one can set what would be the default settings for selected compiler. However, I miss one tab namly "pre/post build steps" where one would be able to set commands that should be executed before / after compilation time.
This is just as important for me when it comes to default setup of a new AVR-GCC project as any other default settings.

Are there any logical reasons for why the option for setting default values to this tab is disabled or is it just an "..oops, we missed that one" thingy.?

Reason is that I always perform the following commands after each build as an example for why one would like to set this default for all new project:

Code
avr-size $(TARGET_OUTPUT_FILE)
avr-objdump -h -S $(TARGET_OUTPUT_FILE) > $(TARGET_OUTPUT_FILE).lss
avr-objcopy -O ihex -R .eeprom -R .eesafe $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).hex
avr-objcopy -O binary -R .eeprom -R .eesafe $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).bin



Breg
Vidar
« Last Edit: October 12, 2009, 03:42:13 pm by zainka »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Default compiler settings
« Reply #1 on: October 12, 2009, 03:58:30 pm »
You can crate aproject with all the common settings you need and save it as user-template.
In this case pre- and post-build-steps are included.