[pooma-dev] GCC Questions

Julian C. Cummings cummings at linkline.com
Fri Oct 26 23:01:14 UTC 2001


Hi Dave,

With gcc, you use -fpic on the compile line to produce
position-independent code and use -shared on the link
line to produce a shared library rather than an executable.

-- Julian C.


Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings at cacr.caltech.edu
 

> -----Original Message-----
> From: Dave Nystrom [mailto:wdn at lanl.gov]
> Sent: Friday, October 26, 2001 1:15 PM
> To: Dave Nystrom
> Cc: pooma-dev; Jeffrey Oldham
> Subject: RE: [pooma-dev] GCC Questions
> 
> 
> Also, what options do I use to build and use shared libraries?
> 
> Dave Nystrom			email: wdn at lanl.gov
> LANL X-3			phone: 505-667-7913	fax: 505-665-3046
> 
> Dave Nystrom writes:
>  > I am revisiting my earlier efforts to try to use gcc to 
> compile our source
>  > code base and have several questions.
>  > 
>  > 1.  I am currently using gcc-3.0.  Should I upgrade to a more recent
>  >     snapshot?  If so, which one?
>  > 
>  > 2.  How do I turn on/off exceptions with gcc?
>  > 
>  > 3.  What options do I use in order to try to force as strict 
> as possible
>  >     compliance of my code with the C++ Standard?
>  > 
>  > 4.  Are there particular options which you would recommend for 
> either my
>  >     debug or optimized builds for our Pooma 2 based code?
>  > 
>  > 5.  Are there any provisions or analogs to the library closure 
> features that
>  >     are used with EDG based compilers?
>  > 
>  > 6.  What loader does gcc use when building on SGI Irix 6.5 
> systems?  If it is
>  >     the SGI loader, is it possible to use the GNU loader on 
> SGI Irix 6.5
>  >     systems?  There appears to be a problem with the SGI loader which
>  >     prevents it from using libraries that are larger than 
> about 512 MBytes.
>  >     Some of our debug libraries are larger than this limiting size.
>  > 
>  > -- 
>  > Dave Nystrom			email: wdn at lanl.gov
>  > LANL X-3			phone: 505-667-7913	fax: 505-665-3046
>  > 
> 



More information about the pooma-dev mailing list