🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #14003

Use of gcc with standard inline libraries (an answer).

#14003
From: AARON KONSTAM
Date: Tue, 27 Feb 1990 03:15
22 lines
1386 bytes
The answers I received to my query about how to use gcc in conjunction
with inline libraries such as libm.il showed such a general lack of
certainty on the matter it seemed worth posting the correct (at least one
correct) answer that I devised through the good graces and advice of Guy
Harris.

He pointed me to the inline(1) function that allowed me to work out a
solution. Therefore, I discovered that one can use assembly language
inline functions successfully with gcc through the following three steps:

1. use gcc to compile your code to assembly language (-S option).
2. Use inline to replace calls in your code with the appropriate inline
   routines.
3. Use gcc to assemble, optimize and link your code into a executable
   module.

It works like a charm! I would still be interested in other approaches if
they exist.

AARON KONSTAM
Trinity University
AKONSTAM@TRINITY.BITNET
Technical Details
Message-ID: <5346@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request
From: AKONSTAM@TRINITY.BITNET (AARON KONSTAM)
Newsgroups: comp.sys.sun
Subject: Use of gcc with standard inline libraries (an answer).
Keywords: Miscellaneous
Message-ID: <5346@brazos.Rice.edu>
Date: 27 Feb 90 03:15:50 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 22
Approved: Sun-Spots@rice.edu
X-Refs:  Original: v9n43
X-Sun-Spots-Digest: Volume 9, Issue 62, message 11