Re: Global variables - register allocated

Rajat Singh <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Message-ID <CAG+2Se7Wcvfw_vSk_HnPy9mE-F_5Tg0P7fhhtoG5m420FnP24g@mail.gmail.com>
I forgot to add I am trying to do this for 68k as target machine.


Regards,

Rajat


On Tue, May 20, 2014 at 5:41 PM, Rajat Singh <[email protected]> wrote:

> Hi,
>
> I am declaring the global variable outside a procedure. I want to know the
> register that is used by this global variable.
> VAR
> VAR1:INTEGER; attribute(name='VAR1');
>
> When I tried to disassemble the object file, the global variables seems to
> be residing in the memory instead of a register.
>
> 80000130:       7005            moveq #5,%d0
> 80000132:       23c0 8000 21ec  movel %d0,800021ec <VAR1>
>
> Can you please let me know how to identify the register which is used by
> this variable.
>
> Thanks,
> Rajat
>

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.