Mail Archives: djgpp/1996/05/09/03:28:24
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
- Raw text -