Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: [OT] Inlining Assembler in C - Linking Problems

Author: Robert Hyatt

Date: 11:04:09 01/21/04

Go up one level in this thread


On January 21, 2004 at 02:40:53, Steve Maughan wrote:

>Bob,
>
>>It is a "classic bit scan first with potential bugs" implementation.  :)
>>
>>It depends on undefined behavior that could change at any time.  It assumes
>>that the second BSF instruction won't change eax if no bits are set.  This is
>>_not_ guaranteed.
>
>Sure - I realize that but what the heck.  I'll be going 64 bit within the next
>year!
>
>Any idea what the magic trick is to inline the assembler?

You could look at Crafty.  I have some inline asm (inlineamd.h) that works
with gcc.  Eugene has some inline asm for MSCV in vcinline.h..


>
>Thanks,
>
>Steve



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.