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
Normal Topic how can I get the linker map? I need to review RAM utilization. (Read 90 times)
jimf
Junior Member
**
Offline


Posts: 30
Joined: May 30th, 2015
how can I get the linker map? I need to review RAM utilization.
Jan 31st, 2026 at 9:43pm
Print Post  
Hi, I'm using Visual Studio 2026 with the Visual Micro extension.  I'm writing C++ being deployed in a NANO 328p.  I'm building a library and my project has an .ino test program, two .cpp files, and one .h file.  Compiles and tests ok but I'm trying to minimize my RAM usage.  I think the way to do this is to examine the linker map.  Not sure how to generate it.  Google AI recommended the following:

Option A: Project Properties (Easiest)
Right-click your project in Solution Explorer and select Properties.
Locate Micro General > Extra Flags or Extra Linker Flags.
Add the following: -Wl,-Map,"$(ProjectDir)$(TargetName).map".
Rebuild your project. The .map file will be generated in your project folder or build output directory.

I can't find where to add switches to generate the linker map. 
Advice on how to do this or alternate approaches are much appreciated!

Not sure it is needed to answer this but I've attached a build+verbose.  Thx!
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2853
Joined: Feb 13th, 2019
Re: how can I get the linker map? I need to review RAM utilization.
Reply #1 - Feb 2nd, 2026 at 11:23am
Print Post  
The simplest solution is to add a Local Board.txt to the project (vMicro > Add Code > Add Local Board.txt) and paste in the entry from the attached text file.

When entered in the project properties the merged parameters (e.g {build.path}) do not get resolved so the explicit folder path would need to be entered which is less flexible.

Also change your build configuration to Release, which will disable the Serial Debugger, and potentially save a little more memory.
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
jimf
Junior Member
**
Offline


Posts: 30
Joined: May 30th, 2015
Re: how can I get the linker map? I need to review RAM utilization.
Reply #2 - Feb 4th, 2026 at 7:46pm
Print Post  
Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint