Re: some question about gc

2005-06-18 Thread zouqiong
1. in the gt-c-decl.h, three functions about lang_decl, gt_pch_nx_lang_decl(),gt_ggc_mx_lang_decl, gt_pch_g_9lang_decl(), what are the differences between the three functions? 2. i can find the prefixes in the gengtype.c, what are they setting for? static const struct write_types_data ggc_wtd =

Re: some question about gc

2005-05-16 Thread Ian Lance Taylor
"zouq" <[EMAIL PROTECTED]> writes: > in the gt-c-decl.h, > three functions about lang_decl, > gt_pch_nx_lang_decl(),gt_ggc_mx_lang_decl, gt_pch_g_9lang_decl(), > what are the differences between the three functions? The _nx_ functions fill in the pchw field of ggc_root_tab. This is used when sav

Re: some question about gc

2005-05-16 Thread zouq
1. in the gt-c-decl.h, three functions about lang_decl, gt_pch_nx_lang_decl(),gt_ggc_mx_lang_decl, gt_pch_g_9lang_decl(), what are the differences between the three functions? 2. i can find the prefixes in the gengtype.c, what are they setting for? static const struct write_types_data ggc_wtd =

Re: some question about gc

2005-05-16 Thread Ian Lance Taylor
"zouq" <[EMAIL PROTECTED]> writes: > yes, as you have suggested, i have already read the gcc-int about garbage > collection, and i still can`t get the imformation i want. > i want to know the following constructs: > gt_ggc_cache_rtab, gt_ggc_deletable_rtab > acording to what rules to genenrat

Re: some question about gc

2005-05-16 Thread Nix
[Disclaimer: the transition to GC happened around the time I started paying attention to GCC, so my knowledge of the pre-GC situation may be inaccurate.] On 16 May 2005, zouq suggested tentatively: > and now i am thinking that why use garbage collection in gcc, > is it because of its high effici

Re: some question about gc

2005-05-16 Thread zouq
i am sorry for that. > "zouq" <[EMAIL PROTECTED]> writes: > > Please don't start a new thread by replying to a message on an > existing thread. Just send a new message, instead. Otherwise your > message goes in the wrong place for people who use threaded e-mail > readers. yes, as you have sugge

Re: some question about gc

2005-05-15 Thread Ian Lance Taylor
"zouq" <[EMAIL PROTECTED]> writes: Please don't start a new thread by replying to a message on an existing thread. Just send a new message, instead. Otherwise your message goes in the wrong place for people who use threaded e-mail readers. > i am trying to port a front end to gcc, > and i am co

some question about gc

2005-05-15 Thread zouq
i am trying to port a front end to gcc, and i am confused with the gc, i see from the file gengtype.c, it can generate many files automaticlly, but i don`t understand the rule to generate it, i can only understand firstly use the yacc to analysize the gtfiles, then output something , and this is ju