Path: 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 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