Re: Best tools for writing an assembler?

=?ISO-8859-1?Q?S=E9bastien_Fricker?= <sebastien.fricker@gmail.com>
Wed, 19 Feb 2014 09:59:36 +0100

          From comp.compilers

Related articles
Best tools for writing an assembler? tpphysik@gmail.com (2014-02-18)
Re: Best tools for writing an assembler? cbergstrom@pathscale.com (=?ISO-8859-1?Q?=22C=2E_Bergstr=F6m=22?=) (2014-02-19)
Re: Best tools for writing an assembler? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2014-02-19)
Re: Best tools for writing an assembler? ivan@ootbcomp.com (Ivan Godard) (2014-02-18)
Re: Best tools for writing an assembler? sebastien.fricker@gmail.com (=?ISO-8859-1?Q?S=E9bastien_Fricker?=) (2014-02-19)
Re: Best tools for writing an assembler? bobduff@TheWorld.com (Robert A Duff) (2014-02-19)
Re: Best tools for writing an assembler? bobduff@shell01.TheWorld.com (Robert A Duff) (2014-02-19)
Re: Best tools for writing an assembler? tpphysik@gmail.com (=?ISO-8859-1?Q?Patrik_T=FAri?=) (2014-02-20)
Re: Best tools for writing an assembler? sebastien.fricker@gmail.com (=?ISO-8859-1?Q?S=E9bastien_Fricker?=) (2014-02-21)
Re: Best tools for writing an assembler? DrDiettrich1@aol.com (Hans-Peter Diettrich) (2014-02-21)
Re: Best tools for writing an assembler? bc@freeuk.com (BartC) (2014-02-22)
[17 later articles]
| List of all articles for this month |

From: =?ISO-8859-1?Q?S=E9bastien_Fricker?= <sebastien.fricker@gmail.com>
Newsgroups: comp.compilers
Date: Wed, 19 Feb 2014 09:59:36 +0100
Organization: Compilers Central
References: 14-02-018
Keywords: assembler
Posted-Date: 19 Feb 2014 17:23:29 EST

If starting from scratch I would use a high level language and for
performance reasons not perl. An assembler may need to assemble big
sources and so it should be as fast as possible. Also think about the
start time of your assembler: if you write it in C#, loading all the
.NET framework may need a lot of time, in this case your assembler may
need 20s before your main function get reached.


If writing from the scratch, I would use OCaml. OCaml provides
ocamllex/ocamlyacc (and also menhir which is also a lex/yacc
replacement) which are quite similar to flex/bison. I think that
coding in ML would permits to get a smaller source file and easier to
read. But of course you need to learn a new programming language...
See http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora107.html
for an ocamllex/ocamlyacc sample.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.