[cfe-dev] irssi compiles!
Sanghyeon Seo
sanxiyn at gmail.com
Fri Apr 4 04:30:03 PDT 2008
As of SVN r49213, you can compile an IRC client, irssi 0.8.12, with
clang out of the box. You can use the result to connect to
irc.oftc.net and join #llvm! :-)
ccc (r49213) Time: 38.9s Size: 1235575
gcc (Debian 4.2.3-3) Time: 41.5s Size: 899309
Comparison is not too meaningful for several reasons:
* As often pointed out, ccc and gcc work differently. .o produced by
ccc are LLVM bitcode; ccc does native code generation only at the very
end.
* clang and gcc produce different diagnostics. For example, gcc wanred
about possible uninitialized uses of variables, while ccc includes
column number in warnings.
* Default CFLAGS in autotools is -g -O2. As clang can't generate debug
symbols yet, I set CFLAGS=-O2 to make comparison not completely
meaningless.
Commands I used:
$ wget -q http://irssi.org/files/irssi-0.8.12.tar.gz
$ tar zxf irssi-0.8.12.tar.gz
$ cd irssi-0.8.12
$ time (CFLAGS=-O2 CC=ccc ./configure; make) >/dev/null
$ ls -l src/fe-text/irssi
$ make clean >/dev/null
$ time (CFLAGS=-O2 CC=gcc ./configure; make) >/dev/null
$ ls -l src/fe-text/irssi
--
Seo Sanghyeon
More information about the cfe-dev
mailing list