🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3532

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

#3532
From: Fred Ma
Date: Fri, 14 Mar 2003 19:34
45 lines
3223 bytes
Markus Gyger wrote:

> Fred Ma <fma@doe.carleton.ca> writes:
> > 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:
> > >
> > > http://soldc.sun.com/migration/linux/gcc2c_tool.html
> > > http://access1.sun.com/s1sprod/
> >
> > Actually, I want to stick with gcc because I want transparency
> > between solaris8 and Win2K/Cygwin.
>
> gcc2c is just a patch for gcc's backend so that it produces
> ISO C code that is then fed to another optimizing C compiler.
> Kind of like the early C++ compilers/translators worked (cfront).
>
> Markus

Hi, Markus,

I took a look at the description.  It looks interesting.
Natural question is why not just use sun's CC directly
when compiling on solaris?

There is another factor that I have to consider.  That
is the fact you have to modify the build of gcc.  It took
about a week to learn enough to try (four
times) to build my own gcc (I am nonadministrator).
This included all the facilities required to test it.  It never
passed the tests without many errors, different errors
each time.  Since I couldn't tell which ones were important,
I didn't install it; my concern was that I couldn't tell which
files to remove in order to uninstall everything.  In the end
I asked my sysadmin to install premade binaries for solaris.
So building gcc is a bit of a problem.

As soon as I finish recoding for matlab, I can do a speed
comparison to confirm that compiling with PIC and as shared
does not adversely affect executio speed.  30% speed
increase from using gcc2c is somewhat significant, and
I'll see if in the future, time permits me to ramp up on what's
necessary to make it work.  Thanks for the suggestion.

Fred
Technical Details
Message-ID: <3E722EBD.ED61E3BB@doe.carleton.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!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> <b4t682$onv@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 11:41:05 PST
Message-ID: <3E722EBD.ED61E3BB@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> <b4t682$onv@portal.gmu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 46
Date: Fri, 14 Mar 2003 14:34:21 -0500
NNTP-Posting-Host: 64.230.51.92
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1047670684 64.230.51.92 (Fri, 14 Mar 2003 14:38:04 EST)
NNTP-Posting-Date: Fri, 14 Mar 2003 14:38:04 EST
Organization: Bell Sympatico
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail