|
|
binary size compared to GCC
Why are the binaries produced by lccwin32 so much smaller
than those produced by GCC (mingw32)?!
The lccwin32 binary is almost 40% smaller in my concrete case.
I do use the same settings in both cases i.e. no debug info and
optimizer turned on. In fact, for GCC I use the -Os (optimize for
small size) optimizer flag...
The only explanation I can think of is that lccwin32 features whole
program redundant literal elemination. That would decrease the
size of my program a lot but mingw cannot do that yet.
Any idea what could cause this massive difference?
|
|
0
|
|
|
|
Reply
|
copx
|
1/11/2011 1:01:19 PM |
|
Le 11/01/11 14:01, copx a �crit :
> Why are the binaries produced by lccwin32 so much smaller than those
> produced by GCC (mingw32)?!
>
> The lccwin32 binary is almost 40% smaller in my concrete case. I do use
> the same settings in both cases i.e. no debug info and optimizer turned
> on. In fact, for GCC I use the -Os (optimize for small size) optimizer
> flag...
>
> The only explanation I can think of is that lccwin32 features whole
> program redundant literal elemination. That would decrease the
> size of my program a lot but mingw cannot do that yet.
>
> Any idea what could cause this massive difference?
>
lccwin32 starts with the optimization principle:
No instruction executes faster than a deleted instruction.
Smaller code leads to faster load time into the processor caches,
more locality and hence faster execution.
That is why I have stressed in the compiler development code size
as the most important criteria for optimization.
|
|
0
|
|
|
|
Reply
|
jacob
|
1/11/2011 2:09:49 PM
|
|
"jacob navia" wrote in message news:ighobb$uhd$1@speranza.aioe.org...
>lccwin32 starts with the optimization principle:
>
>No instruction executes faster than a deleted instruction.
>
>Smaller code leads to faster load time into the processor caches,
>more locality and hence faster execution.
>
>That is why I have stressed in the compiler development code size
>as the most important criteria for optimization.
Ah, I see. Thank you.
|
|
0
|
|
|
|
Reply
|
copx
|
1/11/2011 3:49:58 PM
|
|
|
2 Replies
258 Views
(page loaded in 0.098 seconds)
Similiar Articles: comp.compilers.lccbinary size compared to GCC 2 191 (1/11/2011 1:01:19 PM) Why are the binaries produced by lccwin32 so much smaller than those produced by GCC (mingw32)?! input & output in assembly - comp.lang.asm.x86If you use GCC, try this: g++ -S input.cpp -o input ... Now compare this with the overhead in Windows to set a ... I suppose I initiated the whole `dick size'/`binary size ... Windows API programming with gfortran or g95 - comp.lang.fortran ...... HelloWin'//achar(0) WndClass%cbSize = size ... x86_64-pc-mingw32 --prefix=/home/gfortra n/gcc-home/binary ... Windows "hello world" and asked how it compared with ... improve strlen - comp.lang.asm.x86... code where assembler has no peers in terms of size ... that C++ version which produces identical binary to compared to ... improve strlen - comp.lang.asm.x86 Gcc binary ... ASM to C - comp.lang.asm.x86I gave them programs ranging from GCC compiled simple ... unreasonable to expect to be able to dump any old binary ... the beginning and end of routines, and the sizes of ... Fast bit-reverse on an x86? - comp.dspSo, the "code" is comparable in size (the point ... > If not, how would it compare to the "regular" version? ... x86_64-pc-mingw32 --prefix=/h ome/gfortran/gcc-home/binary ... from std::string to std::istream? - comp.lang.c++stringstream (binary) performance problem - comp.lang.c++ ... comp.lang.c++ ..... istream::pos_type size = stream_size ... string, std::string>) will only ... ptr ... using GCC 4 ... 128 bit integer - comp.lang.c> yeah, this is true of both MSVC and GCC AFAIK ... struct so you can do assignment and equality comparison.) ... How to set the seed as a 128 binary string of psudo ... Fastest Implementation of Integer Wavelets in VC++ - comp ...... faster than the C based solution, thus no fair comparison here. ... VS 7.1 (where float is slightly faster) and GCC 3.3 ... the fastest ... problem is the minimum allocation-size ... Misuses of RTTI - comp.lang.c++.moderatedThen perhaps the compiled binary is not the ... seems relatively modest - both in size and in scope - at least when compared to ... as much space as > possible (e.g. gcc uses ... c++ - gcc compiled binaries w/different sizes? - Stack Overflow... where the same code, built with the same version of gcc, is generating a binary with a different size than ... contents of both builds and compared them (using Beyond Compare ... GNU Compiler Collection - Wikipedia, the free encyclopediaThe GNU Compiler Collection (GCC) is a compiler system produced by the ... to produce a complete executable binary. Each of the ... immediate operand offsets of only a limited size ... 7/30/2012 12:13:33 AM
|
|
|
|
|
|
|
|
|