From e63ed727141798cf38024ec1f0b0eca449c70621 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 5 Dec 2011 21:25:53 +0000 Subject: Provide information on functions missing in C but found in ASM --- pp2cc.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pp2cc.py') diff --git a/pp2cc.py b/pp2cc.py index 3dbbec0..2f58f9b 100755 --- a/pp2cc.py +++ b/pp2cc.py @@ -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 -- cgit v1.2.1