Greetings.
What is C inlinging? Or inlining. Does it have something to do with using
C and assembly language together? I know some of the linux kernel is
inlined and it's written in C with a little assembly.
The term 'inlining' can have different meanings. In standard C, it refers
to declaring a function with the 'inline' keyword, which is a suggestion to
the compiler that it insert the function's code verbatim wherever it is
called, rather than only producing the code for the function once and
calling it as a subroutine. Obviously there's a time-space tradeoff
involved.
The meaning of 'inline' you refer to deals with inserting code from another
programming language, such as SQL or assembly, into a C program. Support
for this type of inlining is compiler-specific; ISO/ANSI C does not provide
for a standard method. If you want to know how to inline assembly in C or
have questions about the Linux kernel, you need to ask on a Linux- or
compiler-specific newsgroup.
Regards,
Tristan