Where's the precompiler output?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm currently developing a program for the ATTiny 104 through Atmel Studio 7.  I was wondering where Atmel Studio 7 is storing the output of the precompiler.  I looked into all generated files in the Debug directory of the project, but none of them contained the precompiled output.

 

Anyone any idea?

 

Best,

 

--Geert

This topic has a solution.
Last Edited: Tue. Jun 12, 2018 - 05:44 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

By default they are created under %TEMP% and deleted at the end of the compilation. If you want to see them to check pre-pro macro expansion etc then add -save-temps to the compiler command line (think AS7 has a tick box for this) then they are created in the same directory as the source files and so are the asm sources. Pre-pro files have .i extensions and asm has .s

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
By default they are created under %TEMP% and deleted at the end of the compilation. If you want to see them to check pre-pro macro expansion etc then add -save-temps to the compiler command line (think AS7 has a tick box for this) then they are created in the same directory as the source files and so are the asm sources. Pre-pro files have .i extensions and asm has .s

 

That is really great!  It took me a while to find indeed the option in AS7, but for those also interested, here it is:

 

  • Select your project within the solution (if the solution would contain more than one project) and right-click (or select Project in the menu bar)
  • Select Properties
  • Select the tab Toolchain
  • Select AVR/GNU C and/or C++ compiler
  • Select Miscellaneous
  • Check the option Do not delete temporary files (-save-temps)
  • Close the tab

 

That's it, enjoy!

 

Best.

 

Last Edited: Tue. Jun 12, 2018 - 05:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You may also find this useful for the .s files
.
https://spaces.microchip.com/gf/project/avr-source/
.
(/end shameless self promotion)