This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: weird staff in binutils symbol value caculation
- From: Ian Lance Taylor <iant at google dot com>
- To: daniel tian <daniel dot xntian at gmail dot com>
- Cc: binutils <binutils at sourceware dot org>, peng dot zheng at mavrixtech dot com
- Date: Thu, 06 May 2010 11:31:23 -0700
- Subject: Re: weird staff in binutils symbol value caculation
- References: <q2o121fadb81005060619o5bafe047ycb69fc69e89165f6@mail.gmail.com>
daniel tian <daniel.xntian@gmail.com> writes:
> I just ported the binutils to my NEW RISC machine. Now the
> assemble codes were compiled with this tools.
> But here is the stuff I just found out:
> .equ REF_FRAMES_BUFFER_SIZE ,
> ((6*DISPLAY_SCALED)+(12*(DISPLAY_SCALED==NO)))
> When the DISPLAY_SCALED and DISPLAY_SCALED, and NO are 0x0.
> But the value REF_FRAMES_BUFFER_SIZE is to be -12.
You aren't writing C code, and there is no particular reason that the
boolean truth value should be 1. In fact, the value of -1 is
documented. If you want a 1, then write a 1.
Ian