aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorgracefu <81774659+gracefuu@users.noreply.github.com>2021-04-09 13:51:00 +0800
committergracefu <81774659+gracefuu@users.noreply.github.com>2021-04-16 15:21:17 +0800
commitc4b83ea02102611a85f75b189f0803d9b6a335c2 (patch)
tree5460625c3766085c5f1210f577e3144296c6a986 /src/codegen
parent5bd464e386df35bfe38b062190074ce3c2689001 (diff)
downloadzig-c4b83ea02102611a85f75b189f0803d9b6a335c2.tar.gz
zig-c4b83ea02102611a85f75b189f0803d9b6a335c2.zip
stage2 x86_64: implement integer mul
This was also an experiment to see if it were easier to implement a new feature when using the instruction encoder. Verdict: It's not that much easier, but I think it's certainly much more readable, because the description of the Instruction annotates what each field means. Right now, precise knowledge of x86_64 instructions is still required because things like when to set the 64-bit flag, how to read x86_64 instruction references, etc. are still not automatically done for you. In the future, this interface might make it sligtly easier to write an assembler for x86_64, by abstracting the bit-fiddling aspects of instruction encoding.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions