|
| 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
| > > 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
>
>
> 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 -
|
| 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
>
> |
> | 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
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:
> 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
>> 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
| >
| >
| > 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
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
| 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
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 .
___
12 matches
Mail list logo