Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: inline __asm in MSVC

Author: Marcel Veldhuizen

Date: 06:07:19 01/21/02

Go up one level in this thread


On January 21, 2002 at 08:45:48, Georg v. Zimmermann wrote:

>Then I looked at crafty source and saw that in crafty all this _asm code is in
>a header file. So I put it in  a header file as well. First question: why does
>MSVC need _asm in a .h file and not only the function declaration for it to get
>inlined ?

AFAIK, it has the same requirement for regular C(++) code that you want inlined.
It's annoying indeed, never found a way around it either. Microsoft puts all
code for inlined functions in *.inc files and includes those in the header if
I'm not mistaken.

>After compiling without errors my program didnt respond anymore after startup.
>After a couple of hours I found out that that was caused by the following
>function into which firstSquare() gets inlined

Did you explicitly force it to be inlined, or did you just 'suggest' inlining to
the compiler?


Marcel Veldhuizen



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.