This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: symbol resolution
- From: Mike Stump <mrs at apple dot com>
- To: James Dessart <james at skwirl dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 14 Mar 2003 13:34:57 -0800
- Subject: Re: symbol resolution
On Friday, March 14, 2003, at 10:40 AM, James Dessart wrote:
I'm writing up a library with gcc that uses both C and assembly. I
have a
data item in assembly labelled as __some_name. if I declare it global,
how would I reference it from a C file?
int foo asm("__some_name");
main() {
foo = 1;
}
as documented in the manual.