Re: Best tools for writing an assembler?

noitalmost <noitalmost@cox.net>
Sun, 23 Feb 2014 11:22:34 -0500

          From comp.compilers

Related articles
[5 earlier articles]
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)
Re: Best tools for writing an assembler? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2014-02-24)
Re: Best tools for writing an assembler? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2014-02-24)
Re: Best tools for writing an assembler? lkrupp@pssw.com (Louis Krupp) (2014-02-24)
Re: Best tools for writing an assembler? ivan@ootbcomp.com (Ivan Godard) (2014-02-24)
Re: Best tools for writing an assembler? ivan@ootbcomp.com (Ivan Godard) (2014-02-24)
[10 later articles]
| List of all articles for this month |
From: noitalmost <noitalmost@cox.net>
Newsgroups: comp.compilers
Date: Sun, 23 Feb 2014 11:22:34 -0500
Organization: Compilers Central
References: 14-02-018 14-02-021 14-02-023
Keywords: assembler
Posted-Date: 23 Feb 2014 11:29:06 EST

Since it hasn't come up in the discussion, I'd like to mention linking
and loading. You should at least be aware of what they do, especially
the loader.


I wouldn't bother with any generation tools like flex or bison, unless
you want to gain experience with those tools for some other project.
Since it's your own architecture, which has no native tools, you'll be
cross-compiling so speed of the assembler won't matter. It'll be a
long time before you write a program for your architecture that'll
take longer than a second to compile, even if you use Perl. So the
language you use should be the one you know best. My bias is toward
C++, but it really won't matter in your case.


I think that by hand-writing your own scanner and parser, you'll get
to know your assembly syntax better. And unless you have something
really strange, simple recursive descent will work fine for the
parser.


First, just get something that works for a simple assembly program.
That'll give you the encouragement to add a few more features. Then
you're off and running.


Post a followup to this message

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