tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] What is size overhead of compiled code?


From: Philippe Ribet
Subject: Re: [Tinycc-devel] What is size overhead of compiled code?
Date: Mon, 14 Apr 2003 15:29:48 +0200

Fabrice Bellard wrote:

> Note also that the TCC linker does not remove unused object files (given
> the current architecture it would be simpler to remove unused code at
> the variable or function level, but it would cause compatibility
> problems with GCC compiled object or library files).
>
> So a fair comparison with GCC should be made only on the object files
> with the 'size' command.

Compilation with tcc and linking with gcc: 2559393; after strip 2129064.
Results are quite the same after stripping.


>
>
> Philippe Ribet wrote:
> > Looks like my last mail failed.
> >
> > Question was:
> > What I was wondering, I am interested in knowing how much bigger
> > the generated code is. I realise that all the optimisations are not
> > there.
> > Can anyone come up with a ballpark estimate, in percentage?
> >
> > Test with gcc 2.95.4 on a large code. Executable size in bytes
> > tcc: 2128340
> > gcc -O0: 2210099
> > gcc -O1: 1699847
> > gcc -O2: 1692071
> > gcc -O3: 2931009
> >
> > After strip:
> > tcc: 2128212
> > gcc -O0: 1837488
> > gcc -O1: 1327304
> > gcc -O2: 1319528
> > gcc -O3: 2558664
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/tinycc-devel

--
Philippe Ribet

                         The README file said
              "Requires Windows 95, NT 4.0, or better."
                    So... I installed it on Linux!







reply via email to

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