diff options
author | Peter Wu <lekensteyn@gmail.com> | 2011-12-05 21:25:53 +0000 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2011-12-05 21:25:53 +0000 |
commit | e63ed727141798cf38024ec1f0b0eca449c70621 (patch) | |
tree | ecd2198e77e6042bee85090b5220827c46ccb46e /pp2cc.py | |
parent | 4a359599772a6059d95fb9c4c9f0ff071ccf7b50 (diff) | |
download | pp2cc-e63ed727141798cf38024ec1f0b0eca449c70621.tar.gz |
Provide information on functions missing in C but found in ASM
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-x | pp2cc.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -197,6 +197,14 @@ class Parse(object): " 'fn_main' exists in assembly") else: self.logger.warning("No main function found with label 'fn_main'") + for function in self.functions.values(): + if not function.isLinked(): + if "fn_" + function.name in self.labels: + self.logger.info("Function '{}' is declared and found in" + " assembly".format(function.name)) + else: + self.logger.warning("Function '{}' is declared but not defined" + .format(function.name)) output.append(self.asm.branch_op("BRA", "fn_main")) output.append("") output += self.codeSegment |