Thread: MAP file

  1. #1
    Registered User
    Join Date
    Oct 2022
    Posts
    96

    MAP file

    Do you analyze the map file in software development, especially when using the GCC compiler? If yes, what are the important aspects you examine in the map file?

  2. #2
    Registered User
    Join Date
    Apr 2021
    Posts
    142
    No. The map file contains information that is not relevant to most software development.

    There are cases where it is useful, like when you are developing for an embedded system. But if you are doing app development on a general-purpose computer like a server, laptop, or desktop, then there is generally no reason to use the map file.

  3. #3
    Registered User
    Join Date
    Oct 2022
    Posts
    96
    Sorry for not mentioned Embedded software development. How do you analyze MAP file for embedded software development

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,663
    It's just a text file of all the symbols / addresses / sizes that make up your complete program.

    What do you want to know?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Oct 2022
    Posts
    96
    Quote Originally Posted by Salem View Post
    It's just a text file of all the symbols / addresses / sizes that make up your complete program.

    What do you want to know?
    When you are developing embedded software what are the important aspects you examine in the map

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,663
    As a general rule, I don't.

    If gdb or some other target debugger can make contact with the target device, that is far more preferable as you can just use symbol names.

    Where it does become more useful is where all you have is a hex dump of memory and you're trying to figure out what each address represents.
    This is laborious and error prone, it's not something you do unless you have no choice.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 11-21-2017, 10:48 AM
  2. Replies: 6
    Last Post: 12-28-2015, 03:36 AM
  3. Replies: 3
    Last Post: 11-28-2012, 09:16 AM
  4. Replies: 11
    Last Post: 09-25-2011, 12:22 AM
  5. Replies: 4
    Last Post: 07-06-2006, 02:53 AM

Tags for this Thread