diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-15 19:24:39 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-16 13:27:39 -0400 |
commit | 5e11a31e4434331e038b97eaaa992ba65e24811a (patch) | |
tree | 0f0fea7a8c11e8e09260d9cb1c3dff1ea1454a8b | |
parent | e9ac92f439c57c5ce7a39482215363315155270b (diff) |
Update Code generation macros
-rw-r--r-- | pc.h | 3 | ||||
-rw-r--r-- | pc.l | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -15,7 +15,6 @@ int set_func_types(ptree*, int*, int); int get_call_types(ptree*, int*, int); #define OFFSET_SIZE 8 +#define DEBUG #endif - -#define GENERATE_CODE @@ -43,9 +43,11 @@ output { tmp->func_info->argc = -1; tmp->func_info->argv = NULL; +#ifdef GENERATE_CODE fprintf(stdout, ".data\n"); fprintf(stdout, "int_print:\n\t .asciz \"%%d\\n\"\n"); fprintf(stdout, "float_print:\n\t .asciz \"%%f\\n\"\n.text\n"); +#endif return IO; |