Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - certain functions, those listed in the description of the "oi" option, have http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Certain functions, those listed in the description of the "oi" option, have
intrinsic forms.  These functions are special functions that are recognized
by the compiler and processed in a special way.  For example, the compiler
may choose to generate in-line code for the function.  The intrinsic
attribute for these special functions is set by specifying the "oi" option
or using an "intrinsic" pragma.

The following describes the form of the "intrinsic" pragma.

+--------------------------------------------------------------------------+
|      #pragma intrinsic ( fn {, fn} ) [;]                                 |
|                                                                          |
+--------------------------------------------------------------------------+

where
    description

fn
    is the name of a function.

Suppose the following source code was compiled without using the "oi" option
so that no function had the intrinsic attribute.  If we wanted the intrinsic
form of the sin function to be used, we could specify the function in an
"intrinsic" pragma.


     #include <math.h>
     #pragma intrinsic( sin );

     double test( double x )
     {
         return( sin( x ) );
     }

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson