ankur sharma wrote: > Sir, > I am a student currently working on parallelism analysis of c++ code > to implement it on GPU and for this i have to write javascripts . > Using dehydra as a plugin for running those scripts on my C++ code .So > for this i need indepth knowledge of how loops , arrays are internally > tackled in the AST in GCC 4.3.0. <http://4.3.0.> > So, can you give me any sample AST for a simple code containing loops > and arrays,. > For accessing AST i also need a expertize in Javascripts writing ,so > can i get some examples of the running javascripts that i can run > using dehydra over my c++ code or give me any link regarding > javascripts samples( of dehydra) for testing purpose of AST of my c++ > codes and can learn through it. > So,please help me regarding that or is there any better way to do this > other than dehydra as you mentioned in your reply for treehydra. > Hoping for a reply from your side soon.
If you are analyzing C++, Treehydra is your only option unless you want to hack GCC directly. Unfortunately it isn't documented at the moment, so you have to look at the existing code. Take a look at http://developer.mozilla.org/en/docs/Dehydra_GCC for installing/running Dehydra. Once you have that working, compile treehydra and use gcc_treehydra.so as the plugin name. See .js files in test/ which have a process_tree() method for examples of Treehydra scripting. Taras ps. There is also http://www.cubewano.org/oink, but it doesn't parse C++ very well. _______________________________________________ Dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
