Re: Tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



konica sarker <konica.sarker@xxxxxxxxx> writes:

> ok. I have a very basic question. If you know, please reply me.
> suppore I have declared variables like :
> _X char a;
> char b:
>
> so, is there any way to find out that "a" is declared in "_X"  address
> space, and "b" in generic address space?

If adecl is the VAR_DECL corresponding to a, look at

TYPE_ADDR_SPACE (TREE_TYPE (adecl))

I may have misunderstood your earlier question.  Variables do have
address spaces.  I thought you were talking about integers rather than
variables.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux