Message-Id: <199605090720.DAA29825@delorie.com> Date: Thu, 09 May 96 10:09:07 LIT From: Martynas Kunigelis Subject: Re: Problems with inline asm of GCC 2.7.2 To: "Salvador Tropea,ICE" , DJGPP mailing list In-Reply-To: Your message of Wed, 8 May 1996 14:33:59 +0300 (GMT) Here are my guesses: *1* I don't think it's a good idea to use `::' anywhere except for method declarations in C++. Did you try inserting a space or a newline in between? *2* I've noticed, that in C asm ("movl $1, %eax") works if you don't use %0-type operands. In C++ the above does not work, you *must* precede a register with double-%, i.e. asm ("movl $1, %%eax"); *3* GCC *never* generates code that messes with segment registers (except for inline farptr functions), so it does not need to know about them. Restore them yourself if you clobber them. That's all I can say, hope this helps. Martynas