Dale Weiler
|
6935561b41
|
Fix one warning
|
2012-12-28 12:33:10 +00:00 |
|
Wolfgang Bumiller
|
93dbfa18f1
|
fix -v option parsing in qcvm
|
2012-12-26 22:49:50 +01:00 |
|
Wolfgang Bumiller
|
47f7611ec9
|
verbose switches for the qcvm; makes -printfuns find the instruction-count of a function and print that too
|
2012-12-26 10:23:45 +01:00 |
|
Wolfgang Bumiller
|
890ca3c782
|
added -disasm-func to the qcvm
|
2012-12-23 20:45:43 +01:00 |
|
Wolfgang Bumiller
|
ee7051c5a4
|
strcmp and strncmp builtins
|
2012-12-23 19:22:38 +01:00 |
|
Wolfgang Bumiller
|
275b6f777a
|
Adding strcat builtin to qcvm
|
2012-12-23 19:06:29 +01:00 |
|
Wolfgang Bumiller
|
67bc99223d
|
Fix a nasty bug in the executor; and make null-strings be shown as (null) in the trace output
|
2012-12-23 17:32:14 +01:00 |
|
Dale Weiler
|
c3964cf29d
|
Make compiler and virtual-machine compile as C++ code, also removed gmqcc_voidptr hack.
|
2012-12-23 07:51:19 +00:00 |
|
Dale Weiler
|
6bc29a1601
|
Merge branch 'master' of github.com:graphitemaster/gmqcc
|
2012-12-23 06:06:57 +00:00 |
|
Dale Weiler
|
13003bf6af
|
Wrapper around FILE to take advantage of MSVC "secure" CRT. We don't actually defend bounds checks (we just hack in the few ones to silent MSVC .. and to pass WinRT "native code" rules)
|
2012-12-23 06:05:22 +00:00 |
|
Wolfgang Bumiller
|
9d54ea6b0c
|
More stuff for qcvm -info
|
2012-12-22 23:30:52 +01:00 |
|
Dale Weiler
|
fa401b6f56
|
Cleanups and make compile with clang again with no warnings.
|
2012-12-22 08:22:50 +00:00 |
|
Dale Weiler
|
7d2a2f2ade
|
cleanups and fixes that cppcheck found
|
2012-12-22 08:07:54 +00:00 |
|
Dale Weiler
|
3c003bc168
|
Get gmqcc/qcvm compiling on windows again. Plus work in progress support for the testsuite on windows (does not compile yet).
|
2012-12-21 01:00:51 -05:00 |
|
Wolfgang Bumiller
|
b02c4e4d10
|
sscanf_s only for _MSC_VER not WIN32 in exec.c
|
2012-12-20 15:46:31 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e1c3e35422
|
Improved parameter handling of qcvm a little, added --version and --help
|
2012-12-18 15:46:26 +01:00 |
|
Wolfgang (Blub) Bumiller
|
70f676784d
|
Better usage message for qcvm, don't exit after any of the information prints - but don't execute if any of them are used
|
2012-12-18 15:39:20 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2a94fe9731
|
qcvm -pringdefs now prints [SAVE] next to globals with DEF_SAVEFLAG set
|
2012-12-18 12:41:29 +01:00 |
|
Wolfgang (Blub) Bumiller
|
83a41d13c0
|
Don't generate AINSTR_END anymore, use INSTR_DONE
|
2012-12-18 11:46:26 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a5e0542f95
|
cmd_options -> opts_cmd_t to make testsuite and executor compile again
|
2012-12-18 11:46:15 +01:00 |
|
Wolfgang (Blub) Bumiller
|
f9b1d057b5
|
Moving all the global opts_ variables into a struct, now there's one global 'opts' struct
|
2012-12-06 13:23:53 +01:00 |
|
Wolfgang (Blub) Bumiller
|
5f0f5bedbc
|
More stuff in qcvm -printfuns
|
2012-12-05 14:22:24 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e8a1b7e71c
|
Remove an unused variable qc_stof
|
2012-12-02 11:58:15 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b7ce7370e8
|
stof builtin #9
|
2012-12-01 15:54:13 +01:00 |
|
Wolfgang (Blub) Bumiller
|
79e0c5c4fa
|
More info in qcvm -printfuns
|
2012-12-01 15:23:04 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e0a7f8a484
|
qcvm -printfuns; prog_section_function.nargs is now signed as fteqcc sets builtins with varargs to have -1 params
|
2012-11-30 20:20:13 +01:00 |
|
Wolfgang (Blub) Bumiller
|
fef9303381
|
moving opts_warn and opts_werror to con.c
|
2012-11-28 19:18:11 +01:00 |
|
Wolfgang (Blub) Bumiller
|
3c1992fc38
|
qcvm didn't compile since moving the compile messages to con.c due to undefined references - fixed now
|
2012-11-28 19:16:35 +01:00 |
|
Dale Weiler
|
ca52ecc20a
|
Remove trailing whitespace for Blub.
|
2012-11-26 11:12:06 +00:00 |
|
Dale Weiler
|
81bb87c49b
|
Sign conversion fixes in exec.c
|
2012-11-23 06:23:20 +00:00 |
|
Wolfgang (Blub) Bumiller
|
12fca5ef8f
|
Make the disasm a bit more verbose as to where globals are
|
2012-11-18 20:32:22 +01:00 |
|
Wolfgang (Blub) Bumiller
|
906f319673
|
Replaced it all...
|
2012-11-15 18:32:09 +01:00 |
|
Wolfgang (Blub) Bumiller
|
84088cb5f0
|
Merging in new-syntax
|
2012-11-14 21:39:16 +01:00 |
|
Wolfgang (Blub) Bumiller
|
6044079528
|
Fix a very stupid bug in the executor which prevented ADDRESS to have the same global as output as one of its inputs
|
2012-11-13 00:36:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
9a42dd1c3a
|
qcvm -trace now shows the current function name and nest-depth
|
2012-11-11 23:57:42 +01:00 |
|
Wolfgang (Blub) Bumiller
|
83438d9833
|
call ir_function_finalize on array accessors otherwise they'll blow up stuff
|
2012-11-11 23:46:03 +01:00 |
|
Wolfgang (Blub) Bumiller
|
cdb7d06521
|
apply the typemask where previously forgotten
|
2012-11-11 23:39:40 +01:00 |
|
Wolfgang (Blub) Bumiller
|
fc6bd54943
|
show the function name for CALLs in disasm
|
2012-11-11 23:36:03 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a3c8605e18
|
Fixing execloop indentation
|
2012-11-11 10:40:31 +01:00 |
|
Dale Weiler
|
9ad35a2817
|
Remove execloop.h, we still use xmacros, but it's done with #include __FILE__ trickery. Please do not kill me, it doesn't look that bad, conditional compilation is even used in eglibc like this :P
|
2012-11-10 20:53:37 +00:00 |
|
Wolfgang (Blub) Bumiller
|
b1b586d398
|
-disasm should show builtins as builtins rather than trying to print negative statements - skip function 0 since it's not a valid function
|
2012-11-02 12:32:13 +01:00 |
|
Wolfgang (Blub) Bumiller
|
265e66b98b
|
-disasm switch for qcvm
|
2012-11-02 12:23:55 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b22f149d9e
|
etos builtin...
|
2012-08-24 22:58:07 +02:00 |
|
Wolfgang (Blub) Bumiller
|
b2cb612c70
|
Adding DEF_SAVEGLOBAL, marking globals as to-be-saved now, for real support of quicksaving
|
2012-08-23 18:28:05 +02:00 |
|
Wolfgang (Blub) Bumiller
|
52a1b9469c
|
qcvm won't print checksum or entity field area size without the -info option anymore
|
2012-08-23 12:42:41 +02:00 |
|
Wolfgang (Blub) Bumiller
|
84149c371d
|
Possibility to call a main function with parameters by specifying -float, -vector or -string parameters to standalone qcvm
|
2012-08-23 10:35:03 +02:00 |
|
Wolfgang (Blub) Bumiller
|
8465f98f37
|
vtos should use the same quotes as we use in qc source
|
2012-08-23 10:18:59 +02:00 |
|
Wolfgang (Blub) Bumiller
|
b93125c678
|
cut off too-long strings in disassembly
|
2012-08-22 17:41:24 +02:00 |
|
Wolfgang (Blub) Bumiller
|
aa314ed147
|
when using -trace in qcvm: print a newline after every print that doesn't end in a newline, so that the next disassembled instruction doesn't appear mid-text
|
2012-08-22 17:37:22 +02:00 |
|
Wolfgang (Blub) Bumiller
|
be18550b02
|
Nicer -trace output in qcvm/exec
|
2012-08-22 17:32:57 +02:00 |
|