Maintaining multiple stacks
Tom Bachmann
e_mc_h2@web.de
Tue Aug 21 19:12:00 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
[I'm not registered to the list, so please cc me.]
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.
thanks
- --
- -ness-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGyzkQvD/ijq9JWhsRAqHsAJ4rp2N2ROXkEcpgC7CYMfim9LbAiwCfcdod
FlZ62WVqKF9BzxYTfMDm4tk=
=5onx
-----END PGP SIGNATURE-----
More information about the Gcc-help
mailing list