3 ms·
Awesome work! Targetting the LC-3 is a great idea. https://github.com/ajxs/ajxs-elf-as https://github.com/ajxs/ajxs-elf-as I embarked on a similar project a l
by ajxs 6y ago
Awesome work! Targetting the LC-3 is a great idea.
https://github.com/ajxs/ajxs-elf-as https://github.com/ajxs/ajxs-elf-as
I embarked on a similar project a little while ago ( see above ). I attempted to write an assembler targeting the MIPS ISA, and assembling ELF relocatable object files. It's 95% complete, with the notable exception of implementing proper bi-endianness. That being said, I'm sure there's so many cases in which it would fail to create linkable object files. At any rate, it was an amazing project for me. I learned so much in doing this that has continued to help me as a developer.
- cellularmitosis 6y agoOh awesome! Targeting something real like MIPS was going to be my next step!
- ajxs 6y agoIt shouldn't be much more work than you've already done, so you should definitely go for it! Maybe even build multi-target support into your assembler, it shouldn't be too difficult. I implemented the framework for this. Instead of MIPS, it might be a good idea to target RISC-V. It's a more modern RISC ISA which apparently has a few less quirks. I found the MIPS documentation to be great, mind you. There's lots of resources available online about MIPS programming. So there are advantages to targeting MIPS, no doubt. RISC-V is on the cutting edge, however. If you're interested in embedded development, learning RISC-V now will have other advantages.
- cellularmitosis 6y agoGreat idea!