Skip to content

NateConroy1/CSC-254-Cross-Indexing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSC-254-Cross-Indexing

CSC 254 A4

This repository is the ownership of Nate Conroy and Luka Sherman and has been made public for my personal portfolio. It may not be used to violate academic honesty policies.

Run Instructions

If developing on CSUG machines:

Copy over the project files
Run gcc -g3 -o example/primes example/primes.c
Run python3 xref.py example/primes

If developing locally:

You're going to need to run the code on the CSUG machines first in order to get the proper 'objdump.txt' and 'dwarfdump.txt' files. Follow those instructions first.

Copy over 'objdump.txt' and 'dwarfdump.txt' from the CSUG machine and paste them in your local 'CSC-254-Cross-Indexing' directory.

Important: Comment out everything in the section with the comment 'Run external objdump and dwarfdump and save to text file' in xref.py. This will stop the program from overwriting the 'objdump.txt' and 'dwarfdump.txt' files you just copied over.

'''
f = open('objdump.txt', 'w')
call(["objdump", "-d", executable_name], stdout=f)
f.close()

f = open('dwarfdump.txt', 'w')
call(["dwarfdump", executable_name], stdout=f)
f.close()
'''

Run gcc -g3 -o example/primes example/primes.c
Run python3 xref.py example/primes

About

CSC 254 A4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors