This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Identify Storage of String Literals in Mapfile

Is it possible to identify the storage of String Literals from the mapfile?

I asume they will be in the ?CO? segment for the module?
eg,

void func( void )
{
   code unsigned int NumConst = 1;

   printf( "NumConst = %u", NumConst );
}

Will both the integer constant NumConst and the string literal "NumConst = %u" be stored in the same ?CO? segment, or will they be listed separately in the map?

Parents
  • Hummmm... unfortunately the ?CO?your_file_source_name is showing your literals and other "real" constants, I could not find a way to see only the literals.

    When I add another code variable to the source file, the length of ?CO?xxx increase.

    Yes, I was using L251 ( FF0000h ).

Reply
  • Hummmm... unfortunately the ?CO?your_file_source_name is showing your literals and other "real" constants, I could not find a way to see only the literals.

    When I add another code variable to the source file, the length of ?CO?xxx increase.

    Yes, I was using L251 ( FF0000h ).

Children
No data