This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: assembler syntax: low(sym) vs. sym@l


Hi Greg,

: PPC provides this syntax for specifying 16-bit pieces of a word:
: sym@h, sym@ha, sym@l.  m32r, OTOH, uses this syntax: high(sym),
: shigh(sym), low(sym).
: 
: I need to choose a syntax for a new gas port.  Is there a substantial
: reason (i.e., other than aesthetics) for choosing one over the other?
: I'll likely go with @xx suffixes if there's no good reason to prefer
: the other notation.

Another reason for choosing the parentheses based syntax is that it
allows you to use expressions in a more intuitive fashion.  eg:

       high (end - start)

as opposed to:

       (end - start)@h

Cheers
	Nick

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]