delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/21/21:29:15

From: Duan Wang <dwang AT ee DOT WPI DOT EDU>
Date: Thu, 21 Apr 1994 21:12:59 -0400
To: djgpp AT sun DOT soe DOT clarkson DOT edu

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019