armcc assembler

Hi

in assembler file I have

// RO_BASE = 0x78000000

funcName 

   DCD FooEntry  - . + .

what does it mean "minus dot plus dot"?

Parents
No Data
Reply
  • Hello WizIO,

    The 'dot' means the address of the instruction or data. it is most commonly used as a "B ." branch to self instruction in (dummy) exception handlers.

    Therefore I _believe_ the above line means to create a data value evaluating to "FooEntry minus current address plus current address"... = FooEntry :)

    I'm not entirely sure why one would do this, perhaps to obfuscate the FooEntry symbol?

Children
No Data