tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] How do I disable all runtime error checks


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] How do I disable all runtime error checks
Date: Fri, 17 May 2019 06:06:18 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, May 16, 2019 at 04:09:51PM -0700, Ben Hutchinson wrote:
> The only reason I don't
> use GCC is that overall it is worse at generating bloated code,

No, try gcc -Os

   text    data     bss     dec     hex filename
 302619   30888  149624  483131   75f3b tcc built with tcc and defaults
 290108   30440  149720  470268   72cfc tcc built with tcc and ONE_SOURCE
 246727    1244  149768  397739   611ab tcc built with gcc 8.2 and defaults
 177105    1236  149768  328109   501ad tcc built with gcc -Os instead of -O2
 172536    1228  149760  323524   4efc4 tcc built with gcc -Os and ONE_SOURCE

The tcc built with gcc -Os ONE_SOURCE=yes is also about 43% faster on my
Atom 330 at compiling and linking itself (0.37s vs. 0.65s, median of 51
runs).

Best regards,

  Daniel



reply via email to

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