Article View: gnu.gcc.help
Article #42716GNU C v. IDL
From: Marvin Vaun Frandsen
Date: Thu, 02 Nov 1995 00:00
Date: Thu, 02 Nov 1995 00:00
37 lines
1310 bytes
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-mailShow 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