Tom Bachmann <e_mc_h2@xxxxxx> writes: > I was wondering if it would be possible to teach gcc to maintain > multiple stacks, something like > > void foo () > { > int on_normal_stack; > int on_special_stack attribute ((stack (mystack))); > } > > where mystack is a (thread-local) global variable that is treated as > another stackpointer. Of course I know that there is no attribute like > that, but I was just wondering if I overlooked something. > > The rationale is that I am writing a system with different types of > pages, but it would be nice to still automatically allocate the space. gcc does not currently support any such facility. It would be possible to add one, of course. I'm not sure whether you are asking whether such support exists today, or whether it is possible to add such support. Ian