diff options
authorPeter Wu <>2011-12-04 15:03:31 +0000
committerPeter Wu <>2011-12-04 15:03:31 +0000
commit4a359599772a6059d95fb9c4c9f0ff071ccf7b50 (patch)
parent94fecea73b0185ff37eb47502f07a8f1e69cd3f9 (diff)
Update main warning if fn_main label exists, update README for automatic vars
2 files changed, 7 insertions, 2 deletions
diff --git a/README b/README
index 3259f15..8f7416a 100644
--- a/README
+++ b/README
@@ -88,7 +88,8 @@ A7.19 Constant expressions - not checked
A8 Declarations
A8.1 Storage class specifiers - static function and global variables are
- supported, static local variables aren't
+ supported, static local variables aren't. auto is implied in
+ functions
A8.2 Type specifiers - unsupported, everything is assumed to be int. void in
the meaning of "no value" is not checked. Const is not meaningfully
supported yet
diff --git a/ b/
index d1b0bdb..3dbbec0 100755
--- a/
+++ b/
@@ -192,7 +192,11 @@ class Parse(object):
output += self.globalInit
if not "main" in self.functions:
- self.logger.warning("No main function found with label 'fn_main'")
+ if "fn_main" in self.labels:
+"No main function was found in C, but label"
+ " 'fn_main' exists in assembly")
+ else:
+ self.logger.warning("No main function found with label 'fn_main'")
output.append(self.asm.branch_op("BRA", "fn_main"))
output += self.codeSegment