[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] gcc vs tcc
From: Per Wigren <wigren () home ! se>
Date: 2002-11-29 17:41:12
[Download RAW message or body]
Is it OK to add dev-lang/tcc as a build-dependancy?
Compiling GOBO (http://www.gobosoft.com) with gcc 3.2.1 takes about 3 hours on
my dual athlon 1.2Ghz with 512mb RAM...
Compare this:
oggy gexace # time gcc -O2 -o gexace-gcc gexace.c
real 10m12.746s
user 9m33.227s
sys 0m4.897s
oggy gexace # time tcc -o gexace-tcc gexace.c
real 0m1.353s
user 0m0.472s
sys 0m0.061s
oggy gexace # ls -l gexace-*
-rwxr-xr-x 1 root root 1216938 Nov 29 18:27 gexace-gcc
-rwxr-xr-x 1 root root 994200 Nov 29 18:27 gexace-tcc
It's almost silly! :) I've done some just-for-fun benchmarking and found that
tcc generates code about as fast as "gcc -O2", but is a little bit slower
than "-O3" and even more so when adding things like "-fomit-frame-pointer"
and "-ffast-math"... But the gobo-utilities are more I/O-intensive than
CPU-intensive so it shouldn't matter much..
gexace is one of several huge (2mb+) .c-files that is part of gobo (generated
by the eiffel-compiler).. Using tcc, compiling it will take about one minute
while it takes 3 hours with gcc...
Regards,
Per Wigren
--
gentoo-dev@gentoo.org mailing list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic