Chris Liechti wrote: > > don't know about TI's assembler but the GAS manual applies to our > assembler. ;-) Fine. > >The > >example code swuart.s uses a form .label:, which I thought might be > >local labels, but info says it is peculiar to the HPPA version of as. So > >what does .label: mean in swuart.s? > > i'm not a GAS expert, but i chose the diffrent labels based on the following > observations: > > name: is a public label that turns up e.g. in "msp430-objdump -DS a.elf" > .Lxxx: is a local label, which sn't shown in an objdump This appears to be an undocumented feature of gas. The docs say that local labels are converted immediately to real labels with funny names. > >Is $n useable? > > ? try it... It's not, but 0: to 9: are local symbols, so it is just a little different. as info says that 1$, with the $ replacing the colon is a local label that goes out of scope as soon a another real label is used, but msp430-as gives an error.
> the syntax is similar but i don't know if its 100% compatible. i think it's > not. That's OK as long a I know which holy book to read. > > one thing i learned recently is taht when you name a file with a capital ".S" > as > extension, then gcc automaticaly processes it with the precompiler and that > long language switch i used in my example makefiles is not needed. > Thanks, Garst
