Extraction of AST and DFG

H_20221_COSC_6386_20924 Hand in
Extraction of AST and DFG using clang and Ghidra Due 24 February 2022 23:59
Instructions For the program at https://github com/TheAlgorithms/C/tree/master/gra hics, do the following: 1- Compile the code with ‘clang’ and generate binary object file “a.out” 2- Use ‘clang’ tools to extract the CFG and AST of the program and store them as “.dot” and “.png” files 3- Use Ghidra to generate AST and CFG from the binary “a.out” and store it as “.dot” and “.png” files. 4- Write a python script to automate the process (1, 2, and 3) for an arbitrary program.
Instructions: Submit a pdf file including the .png files of step 2 and 3, AND describe any difference between the ASTs and CFGs generated by the each tool, AND identify the def-use pairs in the .c source code. Submit the python script and .dot files using the GitHub submission link that will be announced here. There is a follow up exercise in the classroom that you are expected to be able to perform the tasks in this homework.
My work 0 Attach + New
Points SO •••• ••

AssignmentTutorOnline

The post Extraction of AST and DFG appeared first on My Blog.

✍️ Get Writing Help