Commit graph

480 commits

Author SHA1 Message Date
Wolfgang (Blub) Bumiller
9e7143d934 Fixing GMQCC_SUPPRESS_EMPTY_BODY typo 2012-06-28 17:23:01 +02:00
Wolfgang (Blub) Bumiller
01b3f5ef58 ast_call_codegen, ir_block_create_call plus call-related functions, ir_value->outtype TODO: fill outtype in ir_value 2012-06-28 17:21:26 +02:00
Wolfgang (Blub) Bumiller
7363e88cd7 Added a comment about an idea on how to translate calls better. Gotta check some papers for better solutions later 2012-06-28 16:20:31 +02:00
Wolfgang (Blub) Bumiller
e934e77cc5 ast_call node; codegen dummy 2012-06-28 16:15:51 +02:00
Wolfgang (Blub) Bumiller
2073834b9a ir_instr can now store a list of parameters, will be used for CALLs 2012-06-28 15:50:51 +02:00
Wolfgang (Blub) Bumiller
080e6e5dfb exec.h -> gmqcc.h 2012-06-27 22:31:56 +02:00
Wolfgang (Blub) Bumiller
9e148df23f tidying up, using the original typenames from code.c, renamed JUMPS_DEFAULT to VM_JUMPS_DEFAULT 2012-06-27 22:29:31 +02:00
Wolfgang (Blub) Bumiller
f1a2ac624f Moving prog_section and prog_header to gmqcc.h to not have it twice: previously was in code.c and exec.h 2012-06-27 22:04:58 +02:00
Wolfgang (Blub) Bumiller
178dcb13aa fixing Makefile for the qcvm_execprogram.h -> execloop.h commit 2012-06-27 22:04:02 +02:00
Wolfgang (Blub) Bumiller
f50c82f0ad Commenting the VMXF_ flags 2012-06-27 19:42:51 +02:00
Wolfgang (Blub) Bumiller
08e5403896 qcvm_execprogram.h -> execloop.h 2012-06-27 19:37:00 +02:00
Wolfgang (Blub) Bumiller
fe06c9dadc sizeof(int)->sizeof(qcint) - pointed out by graphitemaster 2012-06-27 17:21:25 +02:00
Wolfgang (Blub) Bumiller
a4167900c4 make clean : now deletes qcvm 2012-06-27 15:36:22 +02:00
Wolfgang (Blub) Bumiller
8ce0548ad5 A prototype for error handling 2012-06-27 15:34:26 +02:00
Wolfgang (Blub) Bumiller
e761f1f7b7 'make qcvm' now builds exec-standalone.o from exec.c with -DQCVM_EXECUTOR=1 2012-06-27 14:56:43 +02:00
Wolfgang (Blub) Bumiller
ae639c8ba5 more protos in exec.h 2012-06-27 14:54:19 +02:00
Wolfgang (Blub) Bumiller
3140f2122a Moving typedefs and defines from exec.c into an exec.h header 2012-06-27 14:53:20 +02:00
Wolfgang (Blub) Bumiller
2fd3ddcb1a moved mem_resize and mem_append vector function macros into gmqcc.h 2012-06-27 14:50:52 +02:00
Wolfgang (Blub) Bumiller
0dae2898e3 fix vector resize to not always resize and actually use the reallocated place... 2012-06-27 14:49:36 +02:00
Wolfgang (Blub) Bumiller
a6e7baf127 prog_enter/leavefunction made static 2012-06-27 13:23:27 +02:00
Wolfgang (Blub) Bumiller
1ce97d1acc Executor now executes and traces 2012-06-27 13:21:37 +02:00
Wolfgang (Blub) Bumiller
aa08a2da68 Searching for 'main' 2012-06-26 13:22:37 +02:00
Wolfgang (Blub) Bumiller
36e2a46e07 Listing functions 2012-06-26 13:21:09 +02:00
Wolfgang (Blub) Bumiller
62008635c5 local-stack, locak-stack-pointer, getting strings from an index, adding tempstrings 2012-06-26 13:10:10 +02:00
Wolfgang (Blub) Bumiller
e328446044 executor: loader 2012-06-25 23:58:47 +02:00
Wolfgang (Blub) Bumiller
5500785d16 Deleting the manually written ast-test which was '#if 0'-ed out 2012-06-25 19:35:18 +02:00
Wolfgang (Blub) Bumiller
60542f7df0 generation of COND and JUMP now works 2012-06-25 19:27:50 +02:00
Wolfgang (Blub) Bumiller
21b7005541 ir_function.allocated_locals now contains the number of locals a function requires, renamed code.slot to code.local, makes more sense 2012-06-25 17:43:10 +02:00
Wolfgang (Blub) Bumiller
d69fda7fa1 removing debug output 2012-06-25 17:37:50 +02:00
Wolfgang (Blub) Bumiller
214c063b3f value position allocation, fixing a possible endless loop in ir_values_overlap 2012-06-25 16:06:01 +02:00
Wolfgang (Blub) Bumiller
db7b9a4f96 ir_value_life_merge_into, to merge the liferange of one value into the range of another, testing in test_ir 2012-06-25 14:51:31 +02:00
Wolfgang (Blub) Bumiller
01af44f3c8 ir_function_allocate_locals prototype 2012-06-25 14:14:34 +02:00
Wolfgang (Blub) Bumiller
ebfc73e48a u1 here instead of s1 2012-06-25 13:30:14 +02:00
Wolfgang (Blub) Bumiller
f12612bbc5 Don't add the var_ prefix to function names in the ast-test macros... 2012-06-25 11:54:30 +02:00
Wolfgang (Blub) Bumiller
24d35d8ab8 generate the trailing zero 2012-06-25 11:52:34 +02:00
Wolfgang (Blub) Bumiller
249ecd60db Generate function global, take 2-op instruction operand ordering into account 2012-06-25 11:52:18 +02:00
Wolfgang (Blub) Bumiller
f61d4331fe Fixing NULL->false and empty lines... 2012-06-11 19:25:21 +02:00
Dale Weiler
04cf1d549f Merge branch 'irgen' 2012-06-07 11:24:55 -04:00
Dale Weiler
72f3af6c50 Better fail 2012-06-07 11:24:28 -04:00
Dale Weiler
15d4534202 Fixed more warnings 2012-06-07 11:18:04 -04:00
Dale Weiler
2929eb39a8 fixed -Wconditional-uninitialized for ast codegen 2012-06-07 11:12:12 -04:00
Dale Weiler
f4bc6ba08a Removed even more warnings 2012-06-07 11:09:29 -04:00
Dale Weiler
ce941066db removed more warnings 2012-06-07 11:04:38 -04:00
Dale Weiler
911c2bddb6 fixed shadow issue 2012-06-07 10:59:57 -04:00
Dale Weiler
84c110e8f5 More compile warnings (disabled many for now, they will be re-enabled one-by-one as code that triggers warnings is rectified) 2012-06-07 10:57:48 -04:00
Dale Weiler
d59819620b s/\t/ /g 2012-06-07 10:20:54 -04:00
Dale Weiler
4e9fc02a95 splint: use typedef instead of macro 2012-06-07 10:19:00 -04:00
Wolfgang Bumiller
dc74573fae Print the name, not the struct pointer :S 2012-05-13 14:06:50 +02:00
Dale Weiler
127ad76c65 Whitespace 2012-05-11 12:02:22 -04:00
Wolfgang (Blub) Bumiller
9ef0435f9d fixing fwrite calls I had messed up 2012-05-09 18:24:13 +02:00