3 ms·
This actually looks surprisingly nice... I thought it would appear overly verbose. Is this mostly "renaming instructions" and adding macros in the same style?
by thewataccount 4y ago
This actually looks surprisingly nice... I thought it would appear overly verbose.
Is this mostly "renaming instructions" and adding macros in the same style? A big struggle with assembly for me is simply grepping the syntax (which can also varies wildly across architectures) - this makes it incredibly understandable.
I don't use assembly daily, how well does this work across different instruction sets? Does this fall apart with more complex usages or does it all look relatively sane like this?
- convolvatron 4y agoI have used macro assembler to generate 4 different targets from the same source - powerpc, micro blaze, x86, and C and it worked wonderfully. a caveat being that the projected language was specifically for this one piece of firmware and would likely not generalize. for example the firmware used the ppc cache management instructions and they weren't available on the other platforms, so they were nops there.
- livre 4y ago> I don't use assembly daily, how well does this work across different instruction sets? This particular macroassembler is for .NET CIL (https://en.wikipedia.org/wiki/Common_Intermediate_Language https://en.wikipedia.org/wiki/Common_Intermediate_Language), normal CPU assembly seems to be out of the scope for this project.