Dmitry wrote:
> 
> Fellows,
> 
> No more changes are planned to binutils.
> I will port msp430 stuff to newish version of binutils soon.
> 
> Concerning $labels:
> 
> 1. A "label" is written as a symbol immediately followed by a colon
> `:'.  The symbol then represents the current value of the active
> location counter, and is, for example, a suitable instruction operand.
> You are warned if you use the same symbol to represent two different
> locations: the first definition overrides any other definitions.
In standard as the last definition overrides any other definitions.
> 
> 2. '$' sign is reserved for the 'current PC location', same as '.' .
> So, jmp $+20 means PC=PC+20 (jmp +20 means skip next 20 bytes PC=PC+22)
> $label is not allowed in msp430-as
In standard as it is N$ not $label, but I can live without that.

> 3. labels are prepended by '.' to make them 'symbolized' at current
> location(convenient for elf table generator and debugger. No difference
> for end-user)
I presume you mean:
3. Prepend labels with '.' to make them 'sybolized' ...
 
> 4. Symbols started from 'L' are local ones and cannot be seen in an object
> dump (but written to the elf symbol table though)

What is the scope of local labels? 

> 5. Symbols 1 to 9 never being used by sane people :)
Me sane? You're kidding ;)
> 
> 6. One cannot use #define in 'as' . You have to use C prepocessor. File name 
> shouls have .S (note upper case) suffix.

Reply via email to