Mail Archives: djgpp/1994/04/21/21:29:15
Dear guys:
I have a very simple problem but I can't figure out so far. That's about
the combination of in-line assembly language within C programs under GCC 2.5.7.
An example is as follows, that's in i386 version:
asm("movb data,%ax");
here "data" is previously used in C routine. The GCC compiler told me that
"undefined reference to 'data'". In fact, however, 'data' was defined in C
routine.
I've read "Using as The GNU Assembler" and "GCCinfo", but no help.
Please tell me what to do. Thank you in advance.
Duan Wang | dwang AT ee DOT wpi DOT edu
- Raw text -