Output files with memry information?

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

 



Hi,

I have a weird problem. I have to check some C code for read accesses on
certain variables. For example, if I analyze the variable abc, I have to
know if abc is being read somewhere in the code. This also includes access
to the memory address where the variable is held. I don't care about write
operations. 

So, my only option now is writing a C code parser, which will be very
complicated I suppose. Well, I know that there are problems with arrays,
structs, direct memory accesses etc. and that there are cases where a memory
address which is accessed is determined in runtime. But I have no option to
run or even debug the code.

Then I figured that gcc also checks, if variables are not used in the code,
which means that gcc has to parse the code as well to look for variable or
even memory accesses.

Is there an option to make gcc tell me, which variables are accessed with
read operations? Like an output file or something?

Thank You!


-- 
View this message in context: http://old.nabble.com/Output-files-with-memry-information--tp31010975p31010975.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[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