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 .
___
| 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
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
| >
| >
| > 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
>> 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
> 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
ROTECTED]>
To: "FPC-Pascal users discussions"
Sent: Tuesday, May 17, 2005 12:50 AM
Subject: Re: [fpc-pascal] Executable size compiler 1.96 vs 1.06
| >
| > |
| > | Initialization of the classes and implicitly used sysutils unit uses
| > more
| > | code. Also the us
>
> |
> | 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
|
| 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
>
>
> 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 -
| > > 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
|
| 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 the binary.
Date sent: Mon, 16 May 2005 22:03:28 -0700
From: L505 <[EMAIL PROTECTED]>
To: FPC-Pascal users discussions
Subject:[fpc-pascal] Executable size compiler 1.96 vs 1.06
Send reply to: FPC-Pascal users discussions
> 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)
>
> On linux, 1.96 the application was about 300KB.
> (not so worried about linux, since this is not consistent
> testing..comparing two OS's)
>
15 matches
Mail list logo