473,228 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,228 software developers and data experts.

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 3535
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: I. Kobrinsky | last post by:
I'm new here. I started a personal password-program, a trial that includes username, logincounter and password. So my intention is to hide pwd while tipping. So I'm thinking about two popular...
13
by: Kenneth Lantrip | last post by:
In Ansi-C C99 or Standard C or in GCC... Is there a way to push a value onto the stack and then later retrieve it within the same function? void foo(void) {
11
by: bill | last post by:
I recently worked with a piece of code where dereferencing the pointer was too slow, and I was able to achieve a nearly 2x speed-up by replacing a local array of size 8 with 8 local variables. (*x...
9
by: Job | last post by:
Hi, I would like to find out what ASP/ASP.net can do with image manipulation. Does ASP have built in functions (eg. after upload to server) to manipulate images, like rotate, scale, crop etc.?...
9
by: TuAmigoFiel | last post by:
Why does the following give a segmentation fault? void breakme(char* st) { char* cp = st; *cp = 'x' // This is the problem line. } int main() { char* mine = "teststringfortestingpurposes";...
3
by: Manivannan.P | last post by:
Hi, Accessing a block of memory in stack from Heap or viceversa, is said to be unsafe and a potential security threat. Please calrify why is this so. ThankYou.
2
by: robert | last post by:
When employing complex UI libs (wx, win32ui, ..) and other extension libs, nice "only Python stack traces" remain a myth. Currently I'm hunting again a rare C-level crash bug of a Python based...
0
by: L'eau Prosper Research | last post by:
Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases new TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set. L'eau Prosper Market...
0
by: L'eau Prosper Research | last post by:
NEW TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set By L'eau Prosper Research Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.