🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42716

GNU C v. IDL

#42716
From: Marvin Vaun Frandsen
Date: Thu, 02 Nov 1995 00:00
37 lines
1310 bytes
I bought an expensive new program called IDL (Interactive
Data Language)

In order to link to a C function, for SunOS 4.1.3 using the
Sun compiler, the sequence is:

% cc -pic -fsingle -c example.c

% ld -o example.so -assert pure-text example.o

This results in a shared object that can be accessed by IDL.


-------------------------
cc options mean:

-pic generates position-independent code
-fsingle prevents default promotion of single precision to 
	double precision.
-assert pure-text guaranttes that the resulting load has no 
	relocation items in its text.
-------------------------

So:  What are the equivalent options for GNU C?  The man page was not
much help.


Believe it or not, the commercial vendor says it has never
had this question before.

Help!  Don't make me program in K&R C again! Especially with all
that developed code.  Please!


Thanks,

Marv Frandsen
Technical Details
Message-ID: <47balf$irv@seismo.CSS.GOV>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,94e69f192149031c,start
X-Google-Attributes: gid11318c,public
From: frandsen@seismo.CSS.GOV (Marvin Vaun Frandsen)
Subject: GNU C v. IDL
Date: 1995/11/02
Message-ID: <47balf$irv@seismo.CSS.GOV>
X-Deja-AN: 118485204
distribution: world
organization: Center for Seismic Studies, Arlington, VA
newsgroups: gnu.gcc.help