Compiler: Translation to assembly

Posted by sub on Stack Overflow See other posts from Stack Overflow or by sub
Published on 2010-04-10T08:13:38Z Indexed on 2010/04/10 8:23 UTC
Read the original article Hit count: 161

Filed under:
|

I've written an interpreter for my experimental language and know I want to move on and write a small compiler for it. It will probably take the source, go through the same steps as the interpreter (tokenizer, parser) and then translate the source to assembly.

Now my questions:

  • Can I expect that every command in my language can be 1:1 translated to a bunch of assembly instructions? What I mean is if I will have to completely throw over the whole input program or if it is just translated to assembly per line.

  • Which assembler should I use as output format?

© Stack Overflow or respective owner

Related posts about compiler

Related posts about assembler