Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) need compilation details (Read 7469 times)
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
need compilation details
Nov 30th, 2015 at 6:10pm
Print Post  
in vs 2012, I am close to running out of flash for program storage (close to 32mb in use Sad ) and so I want details as to how much flash each of my functions are using.

Can you advise me?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: need compilation details
Reply #1 - Nov 30th, 2015 at 6:28pm
Print Post  
Try the disassembly and memory usage report at the top of the grouped project properties

Depending on your board they might work
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: need compilation details
Reply #2 - Nov 30th, 2015 at 7:16pm
Print Post  
where do i find "grouped project properties"

Arduino uno
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: need compilation details
Reply #3 - Nov 30th, 2015 at 7:18pm
Print Post  
"Visual Micro>Project Properties", they can be sorted alphabetically or grouped by category using the little buttons above the property list.

Does this make sense?
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: need compilation details
Reply #4 - Nov 30th, 2015 at 7:33pm
Print Post  
no luck.   here is all that I get with your 2 settings:

Compiling debug version of 'HomeEntryExit' for 'Arduino/Genuino Uno'
Binary sketch size: 31,890 bytes (used 99% of a 32,256 byte maximum) (13.13 secs)
Minimum Memory Usage: 1361 bytes (66% of a 2048 byte maximum)
 

AVR Memory Usage
----------------
Device: atmega328p

Program:   31890 bytes (97.3% Full)
(.text + .data + .bootloader)

Data:       1361 bytes (66.5% Full)
(.data + .bss + .noinit)

text         data          bss          dec          hex      
      0        31890            0        31890         7c92

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: need compilation details
Reply #5 - Nov 30th, 2015 at 7:48pm
Print Post  
What does the "Micro Disassembly" output window show?
« Last Edit: Nov 30th, 2015 at 8:09pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: need compilation details
Reply #6 - Nov 30th, 2015 at 9:17pm
Print Post  
it shows all dissasembly.  still no summary of memeory usage by module, file nor method.

any advice?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: need compilation details
Reply #7 - Nov 30th, 2015 at 9:39pm
Print Post  
The are switches in the same section of the settings which you might find give what is needed. It uses the standard avrobj system so should be documented on atmel of some other avr site.
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: need compilation details
Reply #8 - Nov 30th, 2015 at 9:57pm
Print Post  
I found this but where and how to i creat eand find me elf file


Quote:
There is a utility called avr-objdump.exe in  the hardware\tools\avr\bin
directory that will dump a listing of the compiled output (an elf file) showing the C source intermixed with the assembler code. You can also view  a map of the memory allocation.

The following will dump the output of a compiled sketch called mySketch.pde:
avr-objdump �S mySketch.elf 

the elf file is in the applet  subdirectory below the location of the sketch source code
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: need compilation details
Reply #9 - Nov 30th, 2015 at 10:00pm
Print Post  
Visual micro already uses objdump, so everything is setup, you just have to add the additional switches to get extra info in the disassembly window after you build.
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: need compilation details
Reply #10 - Nov 30th, 2015 at 10:02pm
Print Post  
what additional switches?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: need compilation details
Reply #11 - Nov 30th, 2015 at 10:05pm
Print Post  
I found these for avr-objdump.exe on google. Not sure if they will help or not.

Code
Select All
 -a, --archive-headers    Display archive header information
 -f, --file-headers       Display the contents of the overall file header
 -p, --private-headers    Display object format specific file header contents
 -h, --[section-]headers  Display the contents of the section headers
 -x, --all-headers        Display the contents of all headers
 -d, --disassemble        Display assembler contents of executable sections
 -D, --disassemble-all    Display assembler contents of all sections
 -S, --source             Intermix source code with disassembly
 -s, --full-contents      Display the full contents of all sections requested
 -g, --debugging          Display debug information in object file
 -e, --debugging-tags     Display debug information using ctags style
 -G, --stabs              Display (in raw form) any STABS info in the file
 -W, --dwarf              Display DWARF info in the file
 -t, --syms               Display the contents of the symbol table(s)
 -T, --dynamic-syms       Display the contents of the dynamic symbol table
 -r, --reloc              Display the relocation entries in the file
 -R, --dynamic-reloc      Display the dynamic relocation entries in the file
 @<file>                  Read options from <file>
 -v, --version            Display this program's version number
 -i, --info               List object formats and architectures supported
 -H, --help               Display this information 

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint