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

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?

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 memorylss/lst - shows all the machine code (assembly) for the C code you have writtensym - contains info all the 'symbols' ie 'stuff with names' like variables/functions etcThese 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!

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?