[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] TinyCC REPL

From: David Mertens
Subject: Re: [Tinycc-devel] TinyCC REPL
Date: Wed, 20 May 2015 06:14:42 -0400

Hey Sergey,

Good point. I use the expressesion "v < SYM_EXTENDED" and "(v & ~SYM_EXTENDED) == v" interchangeably, as they *mean* the exact same thing for an unsigned integer. I got the idea because inequalities are used with SYM_FIRST_ANOM, so I assumed that inequalities would be safe. I'll fix mine to bit checks.

@Everybody, Might there be a subtle bug in tcc's anonymous symbol checking, since it uses inequalities rather than querying bits directly?


On Mon, May 18, 2015 at 6:52 AM, Sergey Korshunoff <address@hidden> wrote:
0x80000000 is a sign bit. If v == 0x80000000 then v < 0x40000000

Tinycc-devel mailing list

 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]