quakeforge/tools/qfcc/source
Bill Currie 0a5101f88c [qfcc] Specify base register index for local defs
While all base registers can be used for any purpose at any time (this
is why the with instruction has hard-absolute modes: you can never get
permanently lost), qfcc currently uses the convention of register 0 for
globals and register 1 for stack locals (params, locals, function args).
The register used to access a def is stored in the def and that is used
to set the register bits in the instruction opcode.

The def code actually doesn't know anything about any conventions: it
assumes all defs are global for non-temp defs (the function code updates
the defs before emitting code) and the current function provides the
register to use for any temp defs allocated while emitting code.

Seems to work well, but debug is utterly messed up (not surprised, that
will be tricky).
2022-01-21 20:34:43 +09:00
..
.indent.pro indent whitespace cleanup. not perfect, but a bit more consistent now 2001-12-06 19:49:40 +00:00
class.c [qfcc] Use pr_type_names to generate is_TYPE 2022-01-19 18:07:54 +09:00
codespace.c [gamecode] Move progs auxiliary headers into a subdirectory 2022-01-09 00:26:52 +09:00
constfold.c [qfcc] Use index labels for the type arrays 2022-01-18 21:22:18 +09:00
cpp.c Get QF cross-compiling using MXE/mingw32 2021-03-27 20:09:37 +09:00
dags.c [qfcc] Implement flow analysis for Ruamoko calls 2022-01-21 17:14:10 +09:00
debug.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
def.c [qfcc] Specify base register index for local defs 2022-01-21 20:34:43 +09:00
defspace.c [qfcc] Allow 0 sized highwater allocations in defspaces 2022-01-21 10:16:54 +09:00
diagnostic.c [gamecode] Clean up string_t and pointer_t 2022-01-18 12:11:14 +09:00
disassemble.c [gamecode] Remove the wart from def and function names 2021-12-31 15:02:31 +09:00
dot.c [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
dot_dag.c [qfcc] Keep track of reachable dag nodes 2021-06-29 09:41:03 +09:00
dot_expr.c [gamecode] Add ev_ushort and partial support 2022-01-18 22:08:37 +09:00
dot_flow.c [util] Make va thread-safe 2021-01-31 16:05:48 +09:00
dot_sblock.c [qfcc] Make it a little easier to see extra info 2021-12-27 14:15:51 +09:00
dot_type.c [gamecode] Rename ev_pointer to ev_ptr 2022-01-18 14:36:06 +09:00
dump_globals.c [gamecode] Rename ev_quat to ev_quaternion 2022-01-18 17:05:12 +09:00
dump_lines.c [gamecode] Clean up string_t and pointer_t 2022-01-18 12:11:14 +09:00
dump_modules.c [gamecode] Clean up string_t and pointer_t 2022-01-18 12:11:14 +09:00
dump_strings.c [qfcc] Remove a union wart from qfo_mspace_t 2021-12-26 20:37:01 +09:00
emit.c [qfcc] Specify base register index for local defs 2022-01-21 20:34:43 +09:00
expr.c [qfcc] Set up the function stack frame 2022-01-21 20:00:38 +09:00
expr_assign.c [qfcc] Set up the function stack frame 2022-01-21 20:00:38 +09:00
expr_binary.c [qfcc] Add support for unsigned, long, etc 2022-01-19 18:08:58 +09:00
expr_bool.c [gamecode] Add ev_ushort and partial support 2022-01-18 22:08:37 +09:00
expr_compound.c [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
expr_obj.c [qfcc] Move .return handling into statements.c 2022-01-21 13:09:23 +09:00
flow.c [qfcc] Implement flow analysis for Ruamoko calls 2022-01-21 17:14:10 +09:00
function.c [qfcc] Specify base register index for local defs 2022-01-21 20:34:43 +09:00
grab.c [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
idstuff.c [gamecode] Rename ev_quat to ev_quaternion 2022-01-18 17:05:12 +09:00
linker.c [gamecode] Clean up string_t and pointer_t 2022-01-18 12:11:14 +09:00
Makemodule.am Get QF cross-compiling using MXE/mingw32 2021-03-27 20:09:37 +09:00
method.c [qfcc] Fix a missed address expression conversion 2022-01-20 00:42:29 +09:00
obj_file.c [qfcc] Split the function defspace into three spaces 2022-01-21 10:20:02 +09:00
obj_type.c [gamecode] Rename ev_pointer to ev_ptr 2022-01-18 14:36:06 +09:00
opcodes.c [qfcc] Allow -1 width to match with 0 2022-01-20 18:39:06 +09:00
options.c [gamecode] Move progs auxiliary headers into a subdirectory 2022-01-09 00:26:52 +09:00
pragma.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
qc-lex.l [qfcc] Improve handling of type names as variables 2022-01-19 23:17:49 +09:00
qc-parse.y [qfcc] Split the function defspace into three spaces 2022-01-21 10:20:02 +09:00
qfcc.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
qfpreqcc Better handling of progs.dat and line numbers. 2012-11-15 15:04:51 +09:00
qfprogs.c [gamecode] Use unsigned for entity values 2022-01-16 22:15:18 +09:00
qp-lex.l [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
qp-parse.y [qfcc] Split the function defspace into three spaces 2022-01-21 10:20:02 +09:00
reloc.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
shared.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
statements.c [qfcc] Set up the function stack frame 2022-01-21 20:00:38 +09:00
strpool.c [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
struct.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
stub.c [gamecode] Clean up string_t and pointer_t 2022-01-18 12:11:14 +09:00
switch.c [gamecode] Rename ev_integer to ev_int 2022-01-18 13:27:19 +09:00
symtab.c [qfcc] Improve handling of type names as variables 2022-01-19 23:17:49 +09:00
type.c [qfcc] Take operand width into account 2022-01-20 16:49:07 +09:00
value.c [qfcc] Shorten type_function and type_pointer names 2022-01-18 22:34:52 +09:00