This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Symbols in map file

When I look into map file. I saw some symbols generate by CCS have prefix  "_" and some of  them have "$" prefix.

for example:

00001cb0   $word_out_0

00003c40   _cmd_dcdc

What is the different between "_" & "$" ?

 

 

  • The compiler transforms the names of externally visible identifiers when
    creating their linknames. The algorithm used depends on the scope within
    which the identifier is declared. For objects, an underscore ( _ ) is prepended
    to the identifier name. For C functions, 32-bit mode functions have an
    underscore ( _ ) prepended to their names and 16-bit mode functions have a
    dollar sign ($) prepended.