[cfe-dev] irssi compiles!

Chris Lattner clattner at apple.com
Fri Apr 4 08:37:26 PDT 2008


On Apr 4, 2008, at 4:30 AM, Sanghyeon Seo wrote:
> 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

Nice!

-Chris

>
>
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list