quakeforge/tools/qfcc
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
..
doc [qfcc] Replace [no-]v6only with target= 2022-01-07 18:34:05 +09:00
include [qfcc] Specify base register index for local defs 2022-01-21 20:34:43 +09:00
source [qfcc] Specify base register index for local defs 2022-01-21 20:34:43 +09:00
test [qfcc] Move .return handling into statements.c 2022-01-21 13:09:23 +09:00
AUTHORS more mailing list corrections 2003-07-12 21:50:22 +00:00
Makemodule.am [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00
TODO Throw away function parameter type alias info 2020-02-26 17:46:53 +09:00