Inline calls between modules 
Author Message
 Inline calls between modules

Quick question:

Even when informed to inline everything fitable the VC++ C compiler
won't inline calls that happen between different .c files. Not my
functions at least. And that seems awkward if you start thinking about
DoFoo() merely calls DoFooWin() or DoFooLinux() or something like
that. Is there a way around it?

Thx.
Lus Marques



Fri, 31 Dec 2004 04:24:59 GMT  
 Inline calls between modules

wrote in alt.lang.asm:

Quote:
> Quick question:

> Even when informed to inline everything fitable the VC++ C compiler
> won't inline calls that happen between different .c files. Not my
> functions at least. And that seems awkward if you start thinking about
> DoFoo() merely calls DoFooWin() or DoFooLinux() or something like
> that. Is there a way around it?

> Thx.
> Lus Marques

Your question is not very clear.  In the first place, it seems to
concern your high level language compiler and doesn't mention anything
at all about assembly language.  Finally, perhaps the problem is of
your own making, perhaps not.

Where is the source code for the functions you want inlined?
Compilers cannot generate inline code for functions unless they have
the source code for that function in scope at the time.  If the source
is in another source code file, the compiler has no way of placing it
inline when compiling a call to it.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq



Fri, 31 Dec 2004 10:16:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Eztrieve calling a COBOL call module?

2. brk system call in inline assembly.

3. (inline assembler)calling interrupts in program compiled on MsVC.net, winXP

4. how to call a c++ constructor in vc++ inline assembly

5. GCC inline ASM -- calling C functions from __asm__

6. GCC inline ASM -- calling C functions from __asm__ blocks

7. Win32: Calling API Function via Inline Assembly

8. Inline Assembly: Defining and Calling a Procedure

9. porting inline Watcom asm to MSVC inline asm

10. Use of CALL in inline asembly

11. VC42 inline asm calls member fn?

12. Texture on geometry called by Inline

 

 
Powered by phpBB® Forum Software