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

armcc assembler

Hi

in assembler file I have

// RO_BASE = 0x78000000

funcName 

   DCD FooEntry  - . + .

what does it mean "minus dot plus dot"?

Parents
  • 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?

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