AS6: Save the build output?

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: AS6: Save the build output?

Wed Jul 02, 2014 5:35 am

I think the only way is to use the /Out command line switch.

http://msdn.microsoft.com/en-us/library ... 20%29.aspx

Disclaimer: I don't use Atmel Studio for Arm dev, but do use VS :) .
jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: AS6: Save the build output?

Thu Jul 03, 2014 4:21 am

jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: AS6: Save the build output?

Thu Jul 03, 2014 3:15 pm

You could add a post build event

something like this...

Code: Select all

"$(ToolchainDir)\arm-none-eabi-size.exe" "$(AssemblyName).elf" > "$(OutputDirectory)\$(AssemblyName)-size.txt"
Will give you this output into a GccBoardProject1-size.txt file in the build output directory (if your AssemblyName is GccBoardProject1)

Code: Select all

   text	   data	    bss	    dec	    hex	filename
   1996	   1072	  12440	  15508	   3c94	GccBoardProject1.elf
jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: AS6: Save the build output?

Sat Jul 05, 2014 1:32 pm

awneil wrote:how do I execute \Extensions\Application\AvrGCC.dll
Not easily done...
Your only recourse is to get your hands dirty and write some code. Either:
1) write an extension (custom build event comes to mind) for AS6 that uses the dll, or
2) write a standalone executable that incorporates the dll and add it as a post-build event, or

Other *non* dll options:
3) write a script that uses *-size.exe and scans the DeviceSummary.xml file to lookup the part size information then calculate your percentages and pipe this to a file, or
4) Add an external tool that simply performs a build (basically using the /out switch as i mentioned earlier) and sends the output to a file, or
5) Add a post build event that uses *-size.exe that i mentioned in an earlier post, or
6) Make a request to the AS dev team to add a "build log to file option" and hope they agree, and add it to their backlog, then wait for it to be implemented :lol:

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 1 guest