Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
| | Initialization of the classes and implicitly used sysutils unit uses more | code. Also the use of resourcestrings increases the binary. | | The size is mainly a rtl issue. The smartlinking principle in the compiler | isn't changed since 1.0.6. | Hmm, so really then I shouldn't notice that hu

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
| > > With compiler version 1.96, one of my command line applications is 1MB | > > (win32) | > > With the 1.0.6 compiler (using dev pascal) it is just 100KB. (win32) | | > Initialization of the classes and implicitly used sysutils unit uses more | > code. Also the use of resourcestrings increases

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread Marco van de Voort
> > > Ahh.. I'm looking forward to this then... surely this is part or all of the > problem then.. Ok, so off to > sourceforge now, or wherever I google this latest CVS. Try to simple do "strip xxx.exe" on the commandline ___ fpc-pascal maillist -

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
| | In spite of the fact that there _is_ some code size increase in 2.0.x | compared to 1.0.x (due to additional functionality - multi-threading, | etc.), your problem stems most probably in the fact that recent | released versions of GNU tools (ld.exe in particular) don't correctly | strip the de

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread Peter Vreman
> > | > | Initialization of the classes and implicitly used sysutils unit uses > more > | code. Also the use of resourcestrings increases the binary. > | > | The size is mainly a rtl issue. The smartlinking principle in the > compiler > | isn't changed since 1.0.6. > | > > Hmm, so really then I sho

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
Ok something I just did was: Copy ldw.exe from the \dev-pascal\bin directory over to ld.exe in the 1.9.6 compiler (rename ldw to ld) Now program is only 440kb .. hmm Some more testing I will do with 2.0 release. Lars - Original Message - From: "Peter Vreman" <[EMAIL PROTECTED]> To:

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread Marco van de Voort
> Ok something I just did was: > Copy ldw.exe from the \dev-pascal\bin directory over to ld.exe in the 1.9.6 > compiler (rename ldw to ld) > > Now program is only 440kb .. hmm This is the stripping issue I think, and depends on GNU ld. However the old ld had some problems too, that's why was d

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread Peter Vreman
>> Ok something I just did was: >> Copy ldw.exe from the \dev-pascal\bin directory over to ld.exe in the >> 1.9.6 compiler (rename ldw to ld) >> >> Now program is only 440kb .. hmm > > This is the stripping issue I think, and depends on GNU ld. > > However the old ld had some problems too, that's w

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
| > | > | > Ahh.. I'm looking forward to this then... surely this is part or all of the problem then.. Ok, so off to | > sourceforge now, or wherever I google this latest CVS. | | Try to simple do "strip xxx.exe" on the commandline | That worked too, now down to 440KB. Well, 2.0.0 should solve p

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread Marco van de Voort
y> > the newer one, > > since one can always manually strip a release build with "strip file" > > > > Correct. I did a test here. Lazarus provides units compiled with debug > info. The new ld.exe/strip.exe has problems with stripping it. Result is a > large, but working, executable. > > Shipping

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
| There is an ever newer set: | | http://www.stack.nl/~marcov/mingwbinutils200501.zip | | which fixed some more problems with crossbuilding from windows to linux. I think that LD didn't get the UPX.. hehe ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06

2005-05-17 Thread L505
Alright, main problems solved with a simple upgrade. Same project only 216 KB with the 2.0.0 compiler set up in lazarus Project/compiler options/compiler tab. Now it's time to stop playing around with toy Exes and get back to my linux Elves . ___