I am not sure this is the best group, but it might be close enough. In our current project we use PSoC controllers from Cypress and we access our application by reading and writing variables (by address). To do so we parse the map file on the host to figure out the address of a variable and then send the address to the PSoC.
Over time our host code (in Python) became more complex and would like to access some information that is in preprocessor definitions on the target. But how do I get gcc to report the value of a preprocessor definition in the map file. I do not care how the output looks like, I can adapt my map file parser.
For instance, I would like the date and time (which are available in the preprocessor as __DATE__ and __TIME__ in the map file. When we use PSoC 3 we use the Keil compiler and it has a date/time stamp. Of course we could get the file creation date if we make sure it is maintained when copying/emailing/version-controlling the file. But there is other information, e.g. assignment of resources by the Cypress fitter.
Andreas