Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Inline assembly and gcc

Author: Dieter Buerssner

Date: 11:03:27 05/21/04

Go up one level in this thread


On May 21, 2004 at 09:23:01, Anthony Cozzie wrote:

>This is my personal inline assembly reference:
>
>http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html

This is a bit outdated (and wrong). For example:

asm ("cld\n\t"
     "rep\n\t"
     "stosl"
     : /* no output registers */
     : "c" (count), "a" (fill_value), "D" (dest)
     : "%ecx", "%edi" );

This will not work with current Gcc. Some years ago, the changed Gcc, to not
allow input registers in the clobber list (this was a non backwards compatible
change). I think I reported this problem (together with a few others) of the
brennan document over 5 years ago.

Regards,
Dieter



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.