Article View: comp.unix.programmer
Article #3543Re: g++: Shared library, mapfiles, execution speed
From: Markus Gyger
Date: Thu, 13 Mar 2003 21:37
Date: Thu, 13 Mar 2003 21:37
25 lines
1976 bytes
1976 bytes
Fred Ma <fma@doe.carleton.ca> writes:
> My question is: is execution speed or optimizability
> (gcc -O) affected by -shared?
PIC might execute slightly slower (less registers might be
available for optimizations and address calculations might
take more steps).
> -Wl,-M,${MATLAB}/extern/lib/sol2/mexFunction.map
> To get a grip on shared functions, I looked at the ld man
> page for the above -Wl switch. It talks about mapfiles, and
Regarding speed, map files affect mostly the startup time only.
> I'm using g++ 3.2.1 on solaris 8.
You might want to take a look at gcc2c and use it with the current
(production) Sun C compiler for maximum speed optimization:
http://soldc.sun.com/migration/linux/gcc2c_tool.html
http://access1.sun.com/s1sprod/
Markus
Technical Details
Message-ID:
<b4qtnj$jv3@portal.gmu.edu>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!iad-peer.news.verio.net!news.verio.net!solaris.cc.vt.edu!news.vt.edu!portal.gmu.edu!mgygerReferences:
<3E70F170.B4EE8B07@doe.carleton.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e2dd6c17ce56ca38 X-Google-Attributes: gid11318c,public X-Google-Thread: 106e3f,e2dd6c17ce56ca38 X-Google-Attributes: gid106e3f,public X-Google-Thread: fc89c,e2dd6c17ce56ca38 X-Google-Attributes: gidfc89c,public X-Google-Thread: 11035d,e2dd6c17ce56ca38 X-Google-Attributes: gid11035d,public X-Google-ArrivalTime: 2003-03-13 13:46:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!iad-peer.news.verio.net!news.verio.net!solaris.cc.vt.edu!news.vt.edu!portal.gmu.edu!mgyger From: mgyger@gmu.edu (Markus Gyger) Newsgroups: comp.unix.programmer,gnu.gcc.help,comp.soft-sys.matlab,comp.unix.solaris Subject: Re: g++: Shared library, mapfiles, execution speed Date: 13 Mar 2003 21:37:55 GMT Organization: George Mason University, Fairfax, Virginia, USA Lines: 25 Distribution: inet Message-ID: <b4qtnj$jv3@portal.gmu.edu> References: <3E70F170.B4EE8B07@doe.carleton.ca> NNTP-Posting-Host: cs1.gmu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: NN version 6.5.5 (NOV)