macro's and local variables
Mischa Baars
mjbaars1977@gmail.com
Thu Oct 18 18:35:00 GMT 2012
On 10/18/2012 05:58 PM, John Reiser wrote:
> On 10/18/2012 08:09 AM, Mischa Baars wrote:
>> Sounds to me, it would be a better plan to make sure that the assembler accepts it '<<' both with and without '.altmacro' :)
> I agree that the assembler should accept the full syntax and all operators
> for C expressions. Recently I have rued the lack of unary '!' (negation of
> truth value, including '!!' as characteristic function {true==>1, false==>0})
> and trinary "?:" (conditional evaluation).
>
Same problem over here, where (taken from function.S)
A i + j, j > 0 ? N + j + 1 : i + 2
is accepted, but the equivalent
A (i + j), ((j > 0) ? (N + j + 1) : (i + 2))
is not accepted as valid expression.
Mischa.
More information about the Binutils
mailing list