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


Groups > comp.lang.forth > #60533

Re: Portable Assembler

From rickman <gnuarm@gmail.com>
Newsgroups comp.lang.forth
Subject Re: Portable Assembler
Date 2017-06-09 18:13 -0400
Organization A noiseless patient Spider
Message-ID <ohf6bi$6pp$1@dont-email.me> (permalink)
References <ohepje$nfa$1@dont-email.me> <71960bb7-6a65-4c72-b6fc-2f03416014ff@googlegroups.com> <ohesqt$4qp$1@dont-email.me> <ohf1h9$l9e$1@dont-email.me>

Show all headers | View raw


Cecil Bayona wrote on 6/9/2017 4:51 PM:
> On 6/9/2017 2:30 PM, rickman wrote:
>> Mark Wills wrote on 6/9/2017 2:47 PM:
>>> Forth *is* a portable assembler! So is C.
>
> But you and others were arguing against C being Portable so which one is it?
>>
>> That was the point I was trying to make in the original thread, but Cecil
>> seemed to believe there was an advantage to creating a universal assembly
>> language to code in.  To me that is no different from coding a few words
>> in target specific assembly.  Those primitive words serve the same
>> function as the universal assembly language.  So we had a difference of
>> opinion.
>>
> But in order to write those words in assembler you have to have an assembler
> first which is the point that keeps getting missed.

We have discussed this before.  You need an assembler, but that is not the 
same thing as needing to write one.  FIG distributed many, many listings of 
Forth assembled on existing assemblers which are today universally available 
for all embedded processors possibly other than the Transputer, but likely 
even that one.


>> The proof of the pudding will always be in the eating, so I'm wondering if
>> any pudding has been worked on as yet.
>>
> I decided to create an assembler from scratch, and I have spent a couple of
> hours on it. It's for now printing the generated code to the screen so it's
> easier to check but a minor change to write it to a definition.
>
> I have been using SwiftForth for it so I been becoming familiar at the same
> time. Right now it understands a lot of MSP430 mnemonics once it's working
> OK then I will start modifying it to use somewhat more generic mnemonics but
> still very similar to the MSP430 mnemonics.
>
> I forgot how easy it is to write an assembler in Forth, the MSP430
> addressing modes pretty much covers most decent CPUs it's just the generated
> code that is different.
>
> Having fun with my pudding.

Thanks for the update.  Keep us informed.  I'd like to see good things happen.

-- 

Rick C

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