[HN Gopher] Show HN: A readable macroassembler that no one asked... ___________________________________________________________________ Show HN: A readable macroassembler that no one asked for Author : okaleniuk Score : 40 points Date : 2023-04-04 18:52 UTC (4 hours ago) (HTM) web link (github.com) (TXT) w3m dump (github.com) | thewataccount wrote: | 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 wrote: | I 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 wrote: | > 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), | normal CPU assembly seems to be out of the scope for this | project. | snickerer wrote: | And I always thought there is already a set of macros that makes | assembler more readable and portable. It is called C. | overthrow wrote: | This project targets the CLR (the runtime for C#), not a CPU. ___________________________________________________________________ (page generated 2023-04-04 23:00 UTC)