🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52774

Mixing cc and gcc code at link time in SunOS4.1

#52774
From: Elliotte Rusty Harold
Date: Wed, 20 May 1992 01:56
20 lines
1775 bytes
	How well does code compiled with gcc 2.1 integrate with code 
compiled with the bundled cc on a SPARC? I've got a heavily 
mathematical program split across four source files. If I compile all 
four source files with either cc or gcc, the program runs fine and 
gives correct results for a case I'm able to check analytically. I'd 
like to compile three of the pieces with gcc because in general its 
faster and allows me to use ANSI standard code and one with cc to take 
advantage of the -fsingle flag that doesn't seem to have a gcc 
equivalent. However the code created by the hybrid objects produces 
erroneous results. Can I link together code produced by gcc with code 
from other compilers? If so do I need to do anything more than "gcc 
file1.o file2.o file3.o file4.o -lm"? Will this work if I get the gnu 
linker? If I can't link gcc code produced by the bundled cc compiler, 
can I link with code produced by f77? I'm using a Sparc II running 
SunOS 4.1.1.

Elliotte Rusty Harold		Department of Applied Mathematics
elharo@m.njit.edu		New Jersey Institute of Technology
erh0362@tesla.njit.edu		Newark, NJ 07103
Technical Details
Message-ID: <1992May19.205623.1@tesla.njit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!rutgers!njitgw.njit.edu!tesla.njit.edu!erh0362

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,44cf45eb3a03d53b,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-05-19 13:08:24 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!rutgers!njitgw.njit.edu!tesla.njit.edu!erh0362
From: erh0362@tesla.njit.edu (Elliotte Rusty Harold)
Newsgroups: gnu.gcc.help
Subject: Mixing cc and gcc code at link time in SunOS4.1
Message-ID: <1992May19.205623.1@tesla.njit.edu>
Date: 20 May 92 01:56:23 GMT
Article-I.D.: tesla.1992May19.205623.1
Sender: news@njit.edu
Organization: New Jersey Institute of Technology
Lines: 20
Nntp-Posting-Host: tesla