tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] (no subject)


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] (no subject)
Date: Fri, 8 Sep 2006 15:51:42 +0200
User-agent: Mutt/1.4.2.1i

On Fri, Sep 08, 2006 at 03:00:50PM +0200, Johannes Klarenbeek wrote:
> that depends on how you look at the way you write code... just to
> expect that a compiler does a better way optimizing stuff than a good
> programmer would, is a wrong assumption.

No matter how hard you optimize your sourcecode, TinyCC will be slower
than gcc -O1.
TinyCC compiles every statement on its own. After every line of code,
values in registers are written back to the stack. And even if the next
line uses the variables that can still be found in registers, they are
read again from the stack. To make things worse, TinyCC uses only a
fraction of all available registers. TinyCC will never use ebx, esi or
edi on i386, as these need to be preserved across function calls.

  Daniel




reply via email to

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