Mail Archives: djgpp/1999/05/12/18:59:09
> 1) when using extended inline asm in djgpp, is the input registers
> field limited to only 10 operands. Is there any way to get around the
> problem?
If your asm is that complex, you'll probably want to do a separate
assembler file (*.S). GCC has to pre-fill registers with the
expressions you give (or code memory references) so setting up that
many temporaries reduces the efficiency of the generated code.
Note that in most cases, GCC produces code about as good as hand-coded
assembler, and inline asm is only needed for operations gcc doesn't
understand (like inportb, farptr, or system-level register access).
> 2) Is it possible to access C local variables in inline asm?
See <sys/farptr.h> for examples.
- Raw text -