Author Topic: What is the .Map file used for?  (Read 828 times)

0 Members and 1 Guest are viewing this topic.

Offline ArkboyTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Helpful? 0
What is the .Map file used for?
« on: August 03, 2012, 12:56:58 PM »
I was looking through the code for the $50 dollar robot with Sharp IR and I didn't know what the .Map file was used for or if it was really needed?  Does WinAVR make it when you build the project using the c and h files? 

Also is the aws, aps, lss, lst, sym files built when the project is built or do you have to make them?  What are these used for?
Failure is just another excuse to keep playing with your robot.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,166
  • Helpful? 111
Re: What is the .Map file used for?
« Reply #1 on: August 03, 2012, 01:11:22 PM »
A lot of the files you mention are just 'info' output by the compiler. You don't need to do anything with them...
map - shows where things, in your program, live in memory
lss/lst - shows all the machine code (assembly) for the C code you have written
sym - contains info all the 'symbols' ie 'stuff with names' like variables/functions etc
These are all just a by-product of compiling your program - some of them can be turned off but I wouldn't bother as they as so quick to produce. So just forget about them.

The aws and aps files are to do with AVRStudio and 'remember' config info about your project plus what code files you have got open. The files are only used by AVRStudio - don't mess with them!
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline ArkboyTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Helpful? 0
Re: What is the .Map file used for?
« Reply #2 on: August 03, 2012, 02:27:08 PM »
Webbot,

Thank you for the reply.  I was asking because I wanted to use some of the code, (correctly commented and giving credit to original author of course), for a new project and was trying to figure out what files were needed like the headers and class files that actually do stuff and what was used by the compiler and would be recreated.  If I create a new project using the SoR utils and other class files will the map file be created when I try to build the project?

On a side note, is the main deal with the Arduino that it has the low level adc and motor control build into the software suite?  because I have looked at code for Arduino and it is pretty simple looking.  You dont have to write stuff to assign register values to pins or multiplex channels which is what the Sor Utiils file does for the $50 dollar robot right?


-Noah
Failure is just another excuse to keep playing with your robot.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,166
  • Helpful? 111
Re: What is the .Map file used for?
« Reply #3 on: August 04, 2012, 07:29:21 AM »
The Map file is created by specifying an option on the command line to the compiler/linker in the makefile. ie you can choose whether tp generate it or not.

WebbotLib [urlwebbot.org.uk[/url] also gives you a high level library along with visual project and board designers.

Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here