Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #60539

Re: Portable Assembler

From Cecil Bayona <cbayona@cbayona.com>
Newsgroups comp.lang.forth
Subject Re: Portable Assembler
Date 2017-06-09 20:34 -0500
Organization A noiseless patient Spider
Message-ID <ohfi44$3i9$1@dont-email.me> (permalink)
References (1 earlier) <71960bb7-6a65-4c72-b6fc-2f03416014ff@googlegroups.com> <ohesqt$4qp$1@dont-email.me> <ohf1h9$l9e$1@dont-email.me> <ohf6bi$6pp$1@dont-email.me> <1c433b5c-f714-4b8e-83dd-1332c98c5140@googlegroups.com>

Show all headers | View raw


On 6/9/2017 5:23 PM, foxaudioresearch@gmail.com wrote:
> But Cecil has rediscovered the truth about assemblers in Forth.
> They are not too difficult especially if you do not  try to get fancy.
> 

RPN assemblers are pretty simple in Forth but if one wants Infix 
mnemonics its a little harder but not bad using Forth to create it. I 
like the Infix mnemonics used by the VFX Forth by MPE but it requires 
more work to do.

Brad Rodriguez has some nice articles on building an assembler (Build 
Your Own Assembler) in Forth including some hints on making it an Infix 
assembler.

To me a great deal of the fun in all of this is doing research on the 
subject, I really enjoy that part.

> You can be generating working code in a day.

Actually a couple of hours to generate some of the basic words to start 
generating object code. Forth is really good for this task. Also of 
great help is the Forth philosophy of keeping things simple so a very 
simple RPN assembler that gets the job done is only a couple of pages of 
code.

> 
> Then using Forth as a macro generator you can create complex
> macros if needed to make that assembler more Forth like.
> 
> It's very much like a portable assembler when done that way.
> 
> B
> 


-- 
Cecil - k5nwa

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Portable Assembler rickman <gnuarm@gmail.com> - 2017-06-09 14:35 -0400
  Portable Assembler Mark Wills <markwills1970@gmail.com> - 2017-06-09 11:47 -0700
    Re: Portable Assembler rickman <gnuarm@gmail.com> - 2017-06-09 15:30 -0400
      Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-09 15:51 -0500
        Re: Portable Assembler rickman <gnuarm@gmail.com> - 2017-06-09 18:13 -0400
          Re: Portable Assembler foxaudioresearch@gmail.com - 2017-06-09 15:23 -0700
            Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-09 20:34 -0500
              Re: Portable Assembler albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-06-10 08:36 +0200
                Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-10 10:31 -0500
                Re: Portable Assembler Mark Wills <markwills1970@gmail.com> - 2017-06-11 09:07 -0700
                Re: Portable Assembler rickman <gnuarm@gmail.com> - 2017-06-11 12:36 -0400
                Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-11 11:40 -0500
                Re: Portable Assembler Mark Wills <markwills1970@gmail.com> - 2017-06-12 05:30 -0700
                Re: Portable Assembler Mark Wills <markwills1970@gmail.com> - 2017-06-21 02:49 -0700
                Re: Portable Assembler foxaudioresearch@gmail.com - 2017-06-21 06:24 -0700
                Re: Portable Assembler foxaudioresearch@gmail.com - 2017-06-20 17:42 -0700
                Re: Portable Assembler albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-06-16 15:02 +0200
                Re: Portable Assembler Alex <alex@rivadpm.com> - 2017-06-16 15:09 +0100
                Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-16 11:24 -0500
                Re: Portable Assembler Alex <alex@rivadpm.com> - 2017-06-16 18:04 +0100
                Re: Portable Assembler Alex <alex@rivadpm.com> - 2017-06-16 18:23 +0100
              Re: Portable Assembler Alex <alex@rivadpm.com> - 2017-06-10 11:34 +0100
                Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-10 10:57 -0500
              Re: Portable Assembler stephen@mpeforth.com (Stephen Pelc) - 2017-06-10 16:47 +0000
                Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-10 12:57 -0500
        Re: Portable Assembler David Schultz <abuse@127.0.0.1> - 2017-06-09 19:23 -0500
          Re: Portable Assembler Cecil Bayona <cbayona@cbayona.com> - 2017-06-09 20:21 -0500
            Re: Portable Assembler hughaguilar96@gmail.com - 2017-06-09 18:38 -0700
  Re: Portable Assembler Paul Rubin <no.email@nospam.invalid> - 2017-06-10 00:28 -0700
    Re: Portable Assembler rickman <gnuarm@gmail.com> - 2017-06-11 01:15 -0400

csiph-web