Re[3]: Building Win32-perl with Mingw-gcc vs. MS VC++
by Robert Allerstorfer other posts by this author
Nov 6 2002 2:44AM messages near this date
view in the new Beta List Site
RE: Outlook, Perl & OLE
|
Re: Re[3]: Building Win32-perl with Mingw-gcc vs. MS VC++
Hi,
an optimization level greater than 2 increased both the file size and
the memory consumption. Here are the results of my Perl 5.8.0
compilates, compiled with GCC 2.95.2:
(1) (2) (3)
----------------------------
-O1 955 392 2060
-O2 952 832 2064
-O3 1 031 192 2092
-O4 1 031 168 2088
(1)...optimization level
(2)...file size of perl58.dll [B]
(3)...memory consumption [KB] (measured while 'perl -e "sleep 20"')
Therefore, '-O2' still gives the best results.
However, Perl 5.8 generally has a higher memory consumption than Perl
5.6.1, unfortunately.
best,
rob.
--
On Mon, 4 Nov 2002, 08:25 GMT-06 (15:25 local time) Dougal Campbell
wrote:
> On Sat, 2 Nov 2002, Robert Allerstorfer wrote:
> > [....]
> > So, no more -g in the ccflags and ldflags. Instead, the ldflags
> > contain -s (strip all symbols). The resulting perl.exe is only 3 KB
> > small and perl58.dll is 931 KB. All dll's are already stripped.
> > However, Randy's perl58.dll is still 200 KB smaller. Any suggestions
> > on how to optimize the size further, using Mingw's gcc, are
> > appreciated.
> You could try increasing the optimzation level by raising -O2 up to -O3
> or -O4.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|