Re: Best tools for writing an assembler?

Robert A Duff <bobduff@shell01.TheWorld.com>
Wed, 19 Feb 2014 18:27:32 -0500

          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)
Re: Best tools for writing an assembler? noitalmost@cox.net (noitalmost) (2014-02-23)
Re: Best tools for writing an assembler? sebastien.fricker@gmail.com (=?ISO-8859-1?Q?S=E9bastien_Fricker?=) (2014-02-24)
[15 later articles]
| List of all articles for this month |
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Newsgroups: comp.compilers
Date: Wed, 19 Feb 2014 18:27:32 -0500
Organization: The World Public Access UNIX, Brookline, MA
References: 14-02-018 14-02-022
Keywords: assembler
Posted-Date: 21 Feb 2014 02:14:49 EST

Sibastien Fricker <sebastien.fricker@gmail.com> writes:


> 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.


I don't agree -- nobody writes big assembly sources by hand these
days. Maybe you're thinking of compiler-generated assembly,
but I think compilers should generate machine language, not
assembly language. I like Ivan Godard's idea better.


> If writing from the scratch, I would use OCaml.


That's a good choice, but...


>...OCaml provides
> ocamllex/ocamlyacc (and also menhir which is also a lex/yacc
> replacement) which are quite similar to flex/bison.


...but I'd use Ivan Godard's idea, thus avoiding any need for
horsing around with lexing and parsing.


>...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.


Well, learning a new programming language is generally a good idea,
and fun, especially if that language has interesting ideas.


- Bob


Post a followup to this message

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