mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
0a5101f88c
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). |
||
---|---|---|
.. | ||
3dfx_stub | ||
bsp2img | ||
build_scripts | ||
carne | ||
cross | ||
cvs2cl | ||
Forge | ||
gas2masm | ||
gl_stub | ||
io_mesh_qfmdl | ||
io_qfmap | ||
misc | ||
pak | ||
qfbsp | ||
qfcc | ||
qflight | ||
qflmp | ||
qfmodelgen | ||
qfspritegen | ||
qfvis | ||
quaketoascii | ||
texpaint | ||
wad | ||
wav | ||
Makemodule.am |