gnu.gcc.help
[Top] [All Lists]

Re: Passing global variable to assembly

Subject: Re: Passing global variable to assembly
From: Pascal Bourguignon
Date: Thu, 20 Jul 2006 17:48:28 +0200
Newsgroups: gnu.gcc.help
"nono240" <nono240@xxxxxxxxx> writes:

> Hi all, and thanks for reading.
>
> I'm playing for days with the ARM port of GCC, and i need to access
> global C variable from assembly.
> Sorry for my newbie questions, but I'm relatively new to GCC and i've
> tried to reach my global variable by using an underscore ( _ ) as
> prefix without success.
> I've one single C file and one single assembly file (.s).
> Should i include some headers, or some directives for files to know
> each other ?

gcc -S and see how it's named in assembler.
-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Specifications are for the weak and timid!"

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy