This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to instrument at source code level?
- From: "胡鹏飞" <hpfei dot cn at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 Nov 2007 22:04:37 +0800
- Subject: How to instrument at source code level?
Hello everyone,
First, I'm a real beginner at gcc, so I hope my question is not so foolish.
I have used bounds checking patch and find it pretty good though it
can't deal with dangle pointer. The problem is my company doesn't use
GCC in it's every product.
It seems bounds checking mainly instrument at tree. If I want to use
bounds checking on other compiler, I must instrument at source code
level. I wonder if there have
been some functions which can convert tree back to source. I expect your help.
Thanks,
Pengfei Hu