inline option for cl.exe

inline option for cl.exe

Post by formarut » Sat, 31 Jul 2004 14:33:39


I am using cl.exe compiler.
I am trying to inline a function in .c file. I have used the keyword
__forceinline with the function definition.

I am using AQTime to list the call count. To my surprize I get to see
the entry for above function. It means the function is not getting
inlined!

I am using O1 (space) optimization and I want to inline the functions
having __forceinline keyword. Please help me to solve this problem.

Thanks in advance,
Maruti.
 
 
 

1. Compiler Options(cl.exe)

2. cl.exe /G7 option problem

when i open /G7 option, compiler optimize float to long data cast instead of
calling _ftol2 function.But make some mistake when float = 0xffffffff; long
will be 0x80000000.
Assembly code:
00401032 mov eax,dword ptr [yy]
00401035 mov dword ptr [ebp-158h],eax
0040103B mov dword ptr [ebp-154h],0
00401045 fild qword ptr [ebp-158h]
0040104B mov ecx,dword ptr [p]
0040104E fmul dword ptr [ecx]
00401050 fnstcw word ptr [ebp-15Ah]
00401056 movzx eax,word ptr [ebp-15Ah]
0040105D or ah,0Ch
00401060 mov dword ptr [ebp-160h],eax
00401066 fldcw word ptr [ebp-160h]
0040106C fistp dword ptr [ebp-164h]
00401072 fldcw word ptr [ebp-15Ah]
00401078 mov edx,dword ptr [ebp-164h]
0040107E mov dword ptr [xx],edx

3. [error spawning link.exe] & [error spawning cl.exe]

4. [tao-users] tao_idl.exe returns "preprocessor "CL.EXE" returned with an error"

5. can't launch link.exe or cl.exe from a java prog

6. cl.exe and link32.exe with cygwin/make

7. What is the significance of link.exe.config and cl.exe.config files in VS2003

8. cl.exe will not compile a .exe (using the Tutorial example)

9. Problem with ntdll.exe and cl.exe

10. lower cl.exe and link.exe thread priority

11. VS2005 hangs in cl.exe and devenv.exe

12. [tao-users] tao_idl.exe returns "preprocessor "CL.EXE" returned with an error"

13. Mailing lists for cl-ppcre, cl-gd, cl-who, cl-interpol, and html-template

14. cl.exe linking issue

15. Running cl.exe in lower priority