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

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to