This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Tree


On Thu, Jul 7, 2011 at 9:11 PM, Ian Lance Taylor <iant@google.com> wrote:
> konica sarker <konica.sarker@gmail.com> 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
>

Hello,

is there any way to view the details of the tree? or printing a tree?
like all the nodes, connectivity of each nodes...etc??

-konica


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]