Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Tomas Hajny
On 7 Apr 12, at 19:34, Florian Klämpfl wrote: > Am 07.04.2012 18:19, schrieb Tomas Hajny: > > On 7 Apr 12, at 13:23, Jonas Maebe wrote: > >> On 07 Apr 2012, at 13:15, Martin Schreiber wrote: > >> > >>> Thanks, where can I get that "nm utility" for win32? > >> > >> Any distribution of the GNU binuti

Re: [fpc-devel] Compilation error

2012-04-07 Thread Vincent Snijders
Op 7 april 2012 12:38 heeft Jonas Maebe het volgende geschreven: > > On 07 Apr 2012, at 12:19, Marco van de Voort wrote: > >> I saw that Pierre regenerated all makefiles yesterday evening. (r20723), >> maybe that was done with an outdated tool or so. > > No, since he did it to add support for new

[fpc-devel] Re: Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Martin Schreiber
Am 07.04.2012 11:31, schrieb Martin Schreiber: Hi, A minimal MSEgui program compiled with FPC 2.6.0 is 711KB on i386-win32 and 796KB on i386-linux. BTW, the same MSEgui minimal program compiled with Delphi 7 has an exe size of 571KB. Martin ___ fpc-

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Florian Klämpfl
Am 07.04.2012 18:19, schrieb Tomas Hajny: > On 7 Apr 12, at 13:23, Jonas Maebe wrote: >> On 07 Apr 2012, at 13:15, Martin Schreiber wrote: >> >>> Thanks, where can I get that "nm utility" for win32? >> >> Any distribution of the GNU binutils for win32 should include it. I don't >> have Windows mys

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Tomas Hajny
On 7 Apr 12, at 13:23, Jonas Maebe wrote: > On 07 Apr 2012, at 13:15, Martin Schreiber wrote: > > > Thanks, where can I get that "nm utility" for win32? > > Any distribution of the GNU binutils for win32 should include it. I don't > have Windows myself, but I suppose the mingw site would be a go

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Jonas Maebe
On 07 Apr 2012, at 15:32, Martin Schreiber wrote: > AFAIK there is no direct VMT access in MSEgui. I assume gdb debugging with > symbolinfo is not possible after whole program optimization? It should be no problem, only a few call instructions point to different places and some VMT entries are

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Martin Schreiber
On Saturday 07 April 2012 13:23:39 Jonas Maebe wrote: > On 07 Apr 2012, at 13:15, Martin Schreiber wrote: > > Thanks, where can I get that "nm utility" for win32? > > Any distribution of the GNU binutils for win32 should include it. I don't > have Windows myself, but I suppose the mingw site would

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Jonas Maebe
On 07 Apr 2012, at 13:15, Martin Schreiber wrote: > Thanks, where can I get that "nm utility" for win32? Any distribution of the GNU binutils for win32 should include it. I don't have Windows myself, but I suppose the mingw site would be a good place to look for it. > It is the MSEgui minimal

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Martin Schreiber
On Saturday 07 April 2012 12:58:14 Jonas Maebe wrote: > On 07 Apr 2012, at 12:31, Martin Schreiber wrote: > > I tried to optimize it with "Whole Program Optimization". > > On win32 I get: > > " > > Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 > > Copyright (c) 1993-2011 by Florian Klaem

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Jonas Maebe
On 07 Apr 2012, at 12:58, Jonas Maebe wrote: > From http://wiki.freepascal.org/Whole_Program_Optimization#Limitations_4 : > > "This optimisation requires that the nm utility is installed on the system. > For Linux binaries, objdump will also work." I've fixed the compiler so it no longer tries

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Jonas Maebe
On 07 Apr 2012, at 12:58, Jonas Maebe wrote: > On my Linux/i386 system it's 133kb after strip -s, and 261kb before. Have you > recompiled the 2.6.0 rtl somehow? If I recompile the RTL with Stabs or DWARF debug information, the binary becomes 606kb resp. 564kb before stripping, but still 133kb

Re: [fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Jonas Maebe
On 07 Apr 2012, at 12:31, Martin Schreiber wrote: > I tried to optimize it with "Whole Program Optimization". > On win32 I get: > " > Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 > Copyright (c) 1993-2011 by Florian Klaempfl and others > Target OS: Win32 for i386 > Compiling minimal.p

Re: [fpc-devel] Compilation error

2012-04-07 Thread Jonas Maebe
On 07 Apr 2012, at 12:19, Marco van de Voort wrote: > I saw that Pierre regenerated all makefiles yesterday evening. (r20723), > maybe that was done with an outdated tool or so. No, since he did it to add support for new platforms so he had to use the most recent fpcmake (and if you look at the

[fpc-devel] Whole Program Optimization with FPC 2.6.0?

2012-04-07 Thread Martin Schreiber
Hi, A minimal MSEgui program compiled with FPC 2.6.0 is 711KB on i386-win32 and 796KB on i386-linux. I tried to optimize it with "Whole Program Optimization". On win32 I get: " Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS

Re: [fpc-devel] Compilation error

2012-04-07 Thread Marco van de Voort
In our previous episode, Vincent Snijders said: > -FDc:\lazarus\source\binutils\arm-wince -darm -dRELEASE -Ur -viq > ..\winunits-base\src\comobj.pp" failed with exit code 1. Console > output: > Target OS: WinCE for ARM > Compiling ..\winunits-base\src\comobj.pp > Fatal: Can't open file "comobj.pp"

[fpc-devel] Compilation error

2012-04-07 Thread Vincent Snijders
Hi, When I compile fpc trunk for arm-wince on win32 I get this error: [ 93%] Skipped package uuid which has been disabled for target arm-wince Start compiling package winceunits for target arm-wince. Warning: Source file "activex.pp" from package winceunits not found for arm-wince Compiling