Nicholas Tung wrote:
Hi Taras,
I want to make a simple C++ processor that can add code (1) around
a specific function call (2) to any memory read/write (i.e. variables
in expressions, etc.) (3) in the beginning of a function body. If
there's helpful documentation anywhere, I'd appreciate a pointer very
much (which are the better sources would help as well). Also, the oink
site seems to be down (http://www.cubewano.org/oink/); did this have
anything?
Nothing useful in terms of documentation.
I noticed that the renamer doesn't work very well with macros.
(i.e. #define MY_FOO Foo). Is there a way to avoid running gcc's
preprocessor and messing up the source? I definitely need to handle
cases (1) and (2) above for macros.
I'm not sure what you mean by work well with macros.
If you setup a version of gcc with mcpp, then pork tools should deal
with macros pretty well.
https://developer.mozilla.org/en/Installing_Pork
Following the renamer source(or any other pork tool) is your best bet.
We are working on a new simpler build environment
http://hg.mozilla.org/users/tglek_mozilla.com/piglet
If you have any other questions you'd, quickest way to get them answered
is on #static irc channel on irc.mozilla.org
Taras
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis