www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/20/11:59:00

Date: Tue, 20 Jul 93 08:50:42 PDT
From: Ken Ellis <gke AT moosehead DOT aero DOT org>
Posted-Date: Tue, 20 Jul 93 08:50:42 PDT
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: compiler/assembler labels/symbols

Thanks to those who answered my clock/timer questions earlier.
Now for a new question.  If I code something in assembler, and
wish to reference it in a C program, how do I make the symbols
that the compiler generates match my assembly program...i.e.
if I have something like

.globl _my_label_here
   .
   .

_my_label_here:
   ... more stuff

and in my C program I have a prototype void my_label_here(void), 
the compiler generates a symbol _my_label_here__Fv and obviously
I get a linker error.  How do I get the symbols to match???
Thanks,
Ken
 

- Raw text -


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