develooper Front page | perl.perl5.porters | Postings from October 2005

RE: [PATCH] Symbian bleadperl@25725 update

Thread Previous | Thread Next
From:
jarkko.hietaniemi
Date:
October 11, 2005 01:37
Subject:
RE: [PATCH] Symbian bleadperl@25725 update
Message ID:
B356D8F434D20B40A8CEDAEC305A1F24E7A5CA@esebe105.NOE.Nokia.com
> 
> jarkko.hietaniemi@nokia.com wrote:
> 
> > Yeah.  If one builds a DLL in Symbian, it cannot have 
> writeable data.
> 
> Actually, this is a good idea on all platforms, for performance reasons 
> as it stops copy relocations, 

True.  Though for Symbian the raisins are probably more of the hysterical kind:
the idea being that any DLL must be ROMmable.

With the Symbian work I hunted down all such cases from the Perl core itself,
(then Andy Lester started doing the same work, though from the API end of things)
and *most* of the cases in the core extensions.  Encode remains the big offender,
I didn't feel like attacking it yet since it is a complex extension to build and
the Symbian build environment is complex enough already.  But the big data tables
of Encode would be nice to get under const.

A good way to check objects/DLLs/exes against writeable data is to use a BSD-compatible
'nm' and do:

nm foo.o | egrep -v ' [TURtr] '

If you get nothing, you are good :-)

> although I'm not sure how much *actual* 
> performance it costs - not much I suspect ;-)

> -- 
> Alan Burlison
> --
> 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About