Commit graph

418 commits

Author SHA1 Message Date
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
Wolfgang (Blub) Bumiller
5673267c01 Adding a few error message. 2012-05-09 17:39:17 +02:00
Wolfgang (Blub) Bumiller
dfc0f6fab3 TYPE_VARIANT in codegen, writing code from ast-test 2012-05-09 17:30:08 +02:00
Wolfgang (Blub) Bumiller
61d3a9d1a0 generating block code in a simple naive order for now - the ast / parser should help improving order 2012-05-09 15:03:19 +02:00
Wolfgang (Blub) Bumiller
9d72fa9a03 Checking if mem_a returns NULL in ir_..._new functions 2012-05-09 15:03:19 +02:00
Wolfgang (Blub) Bumiller
f5cbd73768 It's the same TYPE enum... 2012-05-09 15:03:19 +02:00
Wolfgang Bumiller
5ca6f4abca More work on generating code - still not instantiating function-statements, 2 kinds of FIXME comments: relocation and creation of ir_values for ir_functions 2012-05-09 15:03:19 +02:00
Wolfgang Bumiller
c252c7e62b Starting ir_builder_generate - TYPE_FUNCTION still TODO 2012-05-09 15:03:19 +02:00
Wolfgang Bumiller
1fd7e30de6 code_cachedstring 2012-05-09 15:03:19 +02:00
Wolfgang Bumiller
edcb976053 Convenience function to store a predefined string in the qc string area 2012-05-09 15:03:19 +02:00
Wolfgang Bumiller
8bfbe4d619 Preparing to generate code from the IR - code_write should return a bool, and take a filename rather than use program.dat hardcoded 2012-05-09 15:03:19 +02:00
Dale Weiler
ac890513e4 readme s/\t/ /g 2012-05-06 17:00:16 -04:00
Dale Weiler
4a1f67bb97 Updated readme 2012-05-06 16:58:30 -04:00