tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] i just can't get over how farging fast tcc is...


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] i just can't get over how farging fast tcc is...
Date: Wed, 2 Feb 2011 11:36:57 +0100
User-agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; )

Le mercredi 02 février 2011 03:35:16, Rick Hodgin a écrit :
> Stephan,
> 
> Bear in mind that while the compile time is fast, and the executable code
> is small and tight, the execution times may still be notably slower as
> there aren't optimizations like gcc has.
Except that optimization was turned on in this experiment :). I think we all 
agree that tcc is really nice to try a build (like automatic build after each 
commit in a project) or for programs where speed is not crucial, and that for 
production use gcc is the right candidate. And also tcc is able to run C code 
as a script :)

Best regards,

Thomas Preud'homme
> 
> - Rick C. Hodgin
> 
> --- On Tue, 2/1/11, Stephan Beal <address@hidden> wrote:
> 
> From: Stephan Beal <address@hidden>
> Subject: [Tinycc-devel] i just can't get over how farging fast tcc is...
> To: address@hidden
> Date: Tuesday, February 1, 2011, 7:50 PM
> 
> Hiya!
> 
> i know this is old news to you guys, but this never ceases to impress me...
> 
> address@hidden:~/cvs/fossil/cpdo$ ls -la cpdo_amalgamation.[ch]
> -rw-r--r-- 1 stephan stephan 94648 Feb  2 01:38 cpdo_amalgamation.c
> 
> -rw-r--r-- 1 stephan stephan 79439 Feb  2 01:38 cpdo_amalgamation.h
> 
> address@hidden:~/cvs/fossil/cpdo$ time gcc -c  -DCPDO_ENABLE_SQLITE3=1
> -DCPDO_ENABLE_MYSQL5=1  -I. -I./include  cpdo_amalgamation.c
> 
> real    0m0.503s
> 
> user    0m0.420s
> sys    0m0.050s
> 
> address@hidden:~/cvs/fossil/cpdo$ time tcc -c  -DCPDO_ENABLE_SQLITE3=1
> -DCPDO_ENABLE_MYSQL5=1  -I. -I./include  cpdo_amalgamation.c
> 
> real    0m0.021s
> user    0m0.020s
> sys    0m0.000s
> 
> 
> 
> Man!!! It blows my mind every time!
> 
> (Shameful Plug: http://fossil.wanderinghorse.net/repos/cpdo/)
> 
> Happy Hacking!

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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