hello! please i want to know how keil generate the map file
Hello Ham,
What gets put into a map file is set in the Keil µVision IDE, under Project->Options for Target->"Listing" tab, in the "Linker Listing" Box on the bottom of the dialog.
You can read about the linker list options here
http://www.keil.com/support/man/docs/uv4/uv4_dg_adslst.htm
These settings will populate the linker command line, for example, a default set of linker command line options for the map file would be
--summary_stderr --info summarysizes --map --xref --callgraph --symbols --info sizes --info totals --info unused --info veneers
You can read about what these options do in the Linker User Guide. For example,
www.keil.com/.../armlink_pge1362075490033.htm
If you are using ARM Compiler 6, you can read about linker options here:
www.keil.com/.../armclang_link_pge1362075490033.htm
http://www.keil.com/support/docs/3711.htm
====
If you are not using the IDE, from command line, when calling the linker make sure to include --map in the linker command string. See:
www.keil.com/.../armlink_pge1362075524125.htm