跟踪内存访问 [英] trace of memory access
问题描述
我想在所有内存的意义上追踪一个程序
它正在访问的
地址......所以例如每次发表一个类似
的声明(变量= 10)执行,我想要变量的地址...
这在某种程度上是可能的还是有人可以给我一点
开始搜索(一些文档等?)
Tnx,
Gregor
i would like a trace of a program in the sense of all the memory
addresses it is accessing...so for example each time a statement like
(variable=10) is executed, i would like the address of the variable...
is this possible in some way or can somebody just give me a point where
to start searching (some documentation, etc?)
Tnx,
Gregor
推荐答案
Gregor Rot< za ********* @ yahoo.com>这样说话:
Gregor Rot <za*********@yahoo.com> spoke thus:
我想要一个程序的痕迹,就是它正在访问的所有内存地址......所以例如每次一个语句都像
(变量= 10)被执行,我想变量的地址...
这可能是某种方式或者有人可以给我一个点开始搜索(一些文档等?)
i would like a trace of a program in the sense of all the memory
addresses it is accessing...so for example each time a statement like
(variable=10) is executed, i would like the address of the variable... is this possible in some way or can somebody just give me a point where
to start searching (some documentation, etc?)
你的帖子是comp.lang.c的偏离主题。请访问
http:// www。 ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html
用于发布指南和常见问题。谢谢。
-
Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我
ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。
Your post is off-topic for comp.lang.c. Please visit
http://www.ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html
for posting guidelines and frequently asked questions. Thank you.
--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.
Gregor Rot写道:
Gregor Rot wrote:
我想在所有记忆意义上追踪一个程序
地址它正在访问...所以例如每次执行一个语句
(变量= 10)时,我想要
变量的地址......
这有可能在某种程度上或者有人可以给我一点
从哪里开始搜索(一些文档等?)
i would like a trace of a program in the sense of all the memory
addresses it is accessing...so for example each time a statement
like (variable=10) is executed, i would like the address of the
variable...
is this possible in some way or can somebody just give me a point
where to start searching (some documentation, etc?)
跟踪它在机器代码中。
-
一些有用的参考:
< http://www.ungerhu.com/ jxh / clc.welcome.txt>
< http://www.eskimo.com/~scs/C-faq/top.html>
< http ://benpfaff.org/writings/clc/off-topic.html>
Trace it in machine code.
--
Some useful references:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html>
<http://benpfaff.org/writings/clc/off-topic.html>
< posted&邮寄>
显然C与此无关,但是你所寻求的功能通常由所谓的b提供。调试器" -
的应用程序有助于编译代码的调试。如果你正在使用的平台有一个C
编译器,那么很可能还有一个调试器
。检查一般解决与您的
编译器/平台相关的问题的论坛,以获取有关调试器的信息。
Gregor Rot写道:
<posted & mailed>
Obviously C doesn''t have anything to do with this, but the functionality you
seek is often provided by what is called a "debugger" -- an application to
aid in the debugging of compiled code. Chances are that if there''s a C
compiler for the platform you are using, there''s likely to be a debugger
too. Check forums that generally address issues related to your
compiler/platform for information about debuggers.
Gregor Rot wrote:
我想跟踪它正在访问的所有内存
地址的程序跟踪...所以例如每次执行类似
(变量= 10)的语句时,我想要变量的地址......
这在某种程度上是可能的,还是有人可以给我一点开始搜索(一些文档等等)?br / >
Tnx,
Gregor
i would like a trace of a program in the sense of all the memory
addresses it is accessing...so for example each time a statement like
(variable=10) is executed, i would like the address of the variable...
is this possible in some way or can somebody just give me a point where
to start searching (some documentation, etc?)
Tnx,
Gregor
-
从地址删除.spam以通过电子邮件回复。
--
remove .spam from address to reply by e-mail.
这篇关于跟踪内存访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!