Re: Maintaining multiple stacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[please cc me]

Nick Maclaren wrote:

> As far as providing a full ability for the programmer to select between
> multiple stacks, either statically or dynamically, it is foul.  The
> problems are fundamental in the problem, and hence cannot be easy in
> gcc.  Think about the semantics of compiler-generated temporaries,
> longjmp/setjmp/exceptions/unwinding etc.
> 

This is not what I was trying to ask for. I don't want to _switch_ the
stack completely, but selectively put some data on a different stack.

> As far as providing a traditional secondary stack, such as to put
> large and dynamically-sized arrays on, that would be a LOT easier.
> That is the sort of secondary stack that I keep banging on about;
> by removing those from the primary stack, it improves cache locality
> and makes it easier for debuggers and tracebacks.
> 

This sounds like what I was looking for.

thanks
- --
- -ness-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGzBpHvD/ijq9JWhsRAjGGAJ9+dEpsGK46iyBAaVHI4RsgIX9ZawCfWfG6
Lu1ejnxwUL4yknHdP3PhZLs=
=PIBK
-----END PGP SIGNATURE-----

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux