Am 27.08.2002 23:47:29, schrieb "Garst R. Reese" <[email protected]>: >Sometimes reading docs gets me more confused. I could find nothing in >gas info about local labels. The TI assembler docs say to use $n.
don't know about TI's assembler but the GAS manual applies to our assembler. ;-) >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 >Is $n useable? ? try it... >Does it need a : afterwards? i think yes. i had errors otherwise. >The TI docs sometimes have a colon after the label and >sometimes not. In general, can msp430-as assemble TI code examples? the syntax is similar but i don't know if its 100% compatible. i think it's not. >Sorry for all the questions. that's what a mailinglist is for :-) 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. chris
