First successful assembly
Worked on the LLVM backend a bunch more this evening, and it successfully assembled something for the first time!
Halt is just 0xfe but the backend only understands 16-bit instructions at the moment, so it assembled as noop, halt, but it’s still a huge step forward and pretty exciting to see it actually generate an output object based on assembler input.
sandcat:build sen$ echo 'halt' | ./bin/llvm-mc -assemble -triple=eclair-unknown-unknown -filetype=obj > /tmp/halt-test.o
sandcat:build sen$ ./bin/llvm-objdump --full-contents --section=.text /tmp/halt-test.o
/tmp/halt-test.o: file format ELF32-eclair
Contents of section .text:
0000 00fe ..
sandcat:build sen$