Hacker News new | ask | show | jobs
by catwind7 2163 days ago
there's certainly equivalent assembler, but depending on the architecture you're targeting this can be a pretty monumental task. Even a single function call can be north of a hundred lines or something (i'm making this up :D )

I guess that's why we have things like LLVM that allow you to generate intermediate representations that get converted to a bunch of different instruction sets

1 comments

For sure, i'm just telling the GP that their request for something that outputs assembly could be done with minor modifications depending on the assembly language they want to output.
gotcha. I also get the feeling that GP was more interested in being right vs actually knowing how to get the emitter to emit assembly. It felt like the followup was just gonna be ... well WHAT ABOUT BINARY?
Nah, assembly -> binary isn't that hard. ;)