Article View: comp.unix.programmer
Article #3546Re: g++: Shared library, mapfiles, execution speed
From: Fred Ma
Date: Fri, 14 Mar 2003 09:49
Date: Fri, 14 Mar 2003 09:49
31 lines
2362 bytes
2362 bytes
Markus Gyger wrote:
> 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
Actually, I want to stick with gcc because I want transparency
between solaris8 and Win2K/Cygwin. Thanks for the suggestions.
Fred
Technical Details
Message-ID:
<3E71A5B5.9D096CB0@doe.carleton.ca>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mailReferences:
<3E70F170.B4EE8B07@doe.carleton.ca> <b4qtnj$jv3@portal.gmu.edu>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-14 01:56:47 PST Message-ID: <3E71A5B5.9D096CB0@doe.carleton.ca> From: Fred Ma <fma@doe.carleton.ca> X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.programmer,gnu.gcc.help,comp.soft-sys.matlab,comp.unix.solaris Subject: Re: g++: Shared library, mapfiles, execution speed References: <3E70F170.B4EE8B07@doe.carleton.ca> <b4qtnj$jv3@portal.gmu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 33 Date: Fri, 14 Mar 2003 04:49:41 -0500 NNTP-Posting-Host: 64.230.75.247 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1047635602 64.230.75.247 (Fri, 14 Mar 2003 04:53:22 EST) NNTP-Posting-Date: Fri, 14 Mar 2003 04:53:22 EST Organization: Bell Sympatico Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail