[Top][All Lists]

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

[Tinycc-devel] size and speed test

From: Detlef Riekenberg
Subject: [Tinycc-devel] size and speed test
Date: Wed, 28 Nov 2007 23:26:01 +0100

With my previous Patch and 2 additional changes, 
i can compile tcc with PellesC
-#ifndef __GNUC__
+#if !defined (__GNUC__) && !defined(__POCC__)


-#warning add arch specific rt_get_caller_pc()
+// #warning add arch specific rt_get_caller_pc()

I used the stripped tcc binaries to compile itself as a benchmark:

158516 (6,1 MB/s) gcc-0-tcc
138008 (7,2 MB/s) gcc-2-tcc
252696 (7,4 MB/s) gcc-3-tcc
110200 (6,8 MB/s) gcc-s-tcc
164352 (5,6 MB/s) mingw-0-tcc.exe
122368 (6,1 MB/s) mingw-s-tcc.exe
174080 (7,7 MB/s) pelles-s-tcc.exe
202240 (7,0 MB/s) pelles-tcc.exe
185344 (4,2 MB/s) tcc-tcc.exe
(pelles C with /Ot failed to compile with 2 errors)

wine tcc-tcc.exe -bench tcc.c -B win32 -Iwin32/include \
                 -Lwin32/lib -DTCC_TARGET_PE -lkernel32

gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
i586-mingw32msvc-gcc (GCC) 3.4.4 (mingw special)
Pelles ISO C Compiler, Version 4.50.15
tcc is current cvs

The first small change works for Pelles C, but this is not the
correct way.
We need to do a test-compile in configure and extend config.h

I plan to send an updated Makefile first.

By by ... Detlef

reply via email to

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