468,484 Members | 1,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Stack Manipulation

I've read some about creating garbage collectors (for other languages)
in C, and conservative garbage collectors sometimes manipulate the
program stack to look for pointers.

How would I do it?

Where can I find functions to manipulate/find things out about the
program stack?

Also in a similar vein, how can I dump all the processor registers to
the stack?

I realize this probably isn't cross-platform AT ALL. I would just
appreciate a few pointers on how to do this, especially on Linux/x86
set ups.

Thanks

PieSquared
Mar 4 '08 #1
3 3308
In article <7f**********************************@d4g2000prg.g ooglegroups.com>,
Pie Squared <Pi********@gmail.comwrote:
>I've read some about creating garbage collectors (for other languages)
in C, and conservative garbage collectors sometimes manipulate the
program stack to look for pointers.

How would I do it?

Where can I find functions to manipulate/find things out about the
program stack?
(Beavis & Butthead) He said "stack"!!!

Mar 4 '08 #2
On Mar 3, 3:48*pm, Pie Squared <PieSqua...@gmail.comwrote:
I've read some about creating garbage collectors (for other languages)
in C, and conservative garbage collectors sometimes manipulate the
program stack to look for pointers.

How would I do it?

Where can I find functions to manipulate/find things out about the
program stack?

Also in a similar vein, how can I dump all the processor registers to
the stack?

I realize this probably isn't cross-platform AT ALL. I would just
appreciate a few pointers on how to do this, especially on Linux/x86
set ups.
http://en.wikipedia.org/wiki/Garbage...mputer_science)
Mar 4 '08 #3
Pie Squared <Pi********@gmail.comwrites:
[...]
And... I don't think I understood the, "(Beavis & Butthead) He said
"stack"!!!"...
Don't worry about it. That was written by one of our resident trolls.
Please ignore him. Really.

--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Mar 5 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by I. Kobrinsky | last post: by
13 posts views Thread by Kenneth Lantrip | last post: by
11 posts views Thread by bill | last post: by
9 posts views Thread by Job | last post: by
9 posts views Thread by TuAmigoFiel | last post: by
3 posts views Thread by Manivannan.P | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.