🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3534

Re: g++: Shared library, mapfiles, execution speed

#3534
From: Fred Ma
Date: Sat, 15 Mar 2003 22:27
38 lines
3147 bytes
Philip Brown wrote:

> On Fri, 14 Mar 2003 04:49:41 -0500, fma@doe.carleton.ca wrote:
> >Markus Gyger wrote:
> >> You might want to take a look at gcc2c and use it with the current
> >> (production) Sun C compiler for maximum speed optimization:
> >>...
> >
> >Actually, I want to stick with gcc because I want transparency
> >between solaris8 and Win2K/Cygwin.
>
> you should have no problems using forte for solaris 8 and gcc on cygwin.
>
> It's easy taking source code developed under forte CC, and recompiling with
> g++. Usually, (almost always) there's nothing extra to do.
> The problem is when you try to go the other way.
>
> --
>   http://www.blastwave.org/ for solaris pre-packaged binaries with pkg-get
>     Organized by the author of pkg-get
> [Trim the no-bots from my address to reply to me by email!]
>          S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
>                             http://www.spamlaws.com/state/ca1.html

I do recall years ago when I last used C++, I was in fact making
minor mods to enable compiling with gcc on the suns and HP's CC.
That was on HPUX.  For now, I just want to understand what
coding practices affect speed, in principle, and worry about tweaking
based on compilers/platform later.  I may decide to forgo some of
those for cross-platform portablility e.g. if it involves time to tweak
stuff everytime I migrate from cygwin gcc to solaris forte, I may decide
just to stick with gcc because of its ubiquity.

By the way, gcc has a handy --version switch, but cc on the sun
doesn't.  Is there a way to check beyond any doubt what compiler
it is?

Fred
Technical Details
Message-ID: <3E73A8DF.EBD6C7C6@doe.carleton.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
References: <3E70F170.B4EE8B07@doe.carleton.ca> <b4qtnj$jv3@portal.gmu.edu> <3E71A5B5.9D096CB0@doe.carleton.ca> <slrnb74k13.119m.phil+s3@bolthole.com>

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: 11035d,e2dd6c17ce56ca38
X-Google-Attributes: gid11035d,public
X-Google-Thread: fc89c,e2dd6c17ce56ca38
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2003-03-15 14:34:49 PST
Message-ID: <3E73A8DF.EBD6C7C6@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> <3E71A5B5.9D096CB0@doe.carleton.ca> <slrnb74k13.119m.phil+s3@bolthole.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 40
Date: Sat, 15 Mar 2003 17:27:43 -0500
NNTP-Posting-Host: 64.230.72.250
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1047767492 64.230.72.250 (Sat, 15 Mar 2003 17:31:32 EST)
NNTP-Posting-Date: Sat, 15 Mar 2003 17:31:32 EST
Organization: Bell Sympatico
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail