GTY or global_tree array?
Tom Tromey
tromey@redhat.com
Fri Nov 15 14:03:00 GMT 2002
I'm adding a new global tree to gcj. I'd like to know whether it is
preferable to add a new slot to the java_global_trees array (along
with a new JTI_ constant and #define) or to just declare the new tree
as a global variable and mark it with GTY(()).
Is there some global style toward which we are aiming?
Is there a performance benefit to one or the other?
There is definitely a debugging advantage to the GTY route. In case
of a tie, I'll probably let that decide.
Tom
More information about the Gcc
mailing list