[Top][All Lists]

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

Re: [Tinycc-devel] tcc on x86_64

From: Manoel Teixeira
Subject: Re: [Tinycc-devel] tcc on x86_64
Date: Mon, 20 Jul 2009 09:09:25 -0300

I think that function calling in Tinycc is the main constraint of this 
beautiful tool. 
It's very slow. If it could be optmized, the Tinycc would be better than it is.

Manoel Teixeira

Mon, 20 Jul 2009 21:02:14 +0900, shinichiro.h <address@hidden> escreveu:

> > I had done something like this (for i386), but then decided it wasn't 
> > worth the effort.  It elliminated unneeded jumps, removed the "sub 0, 
> > esp" instruction, and used short jumps when possible, even for the 
> > conditional ones.  Code size was reduced by some 16% (I used original 
> > tcc source for the test).  I didn't test the compilation speed but it 
> > felt the same.
> Thanks for the info. I guessed that one of the significant relatively
> easy optimization would be eliminating use of stacks. For example, TCC
> uses stacks even for the simplest function like
> int f(int x) {
>     return x;
> }
> I guessed that memory operations would be expensive even with CPU
> cache, but I'm not sure as I performed no experiments like you...
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

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