[comp.sys.sun] Use of gcc with standard inline libraries

AKONSTAM@TRINITY.BITNET (AARON KONSTAM) (02/27/90)

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