Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #60540
| Newsgroups | comp.lang.forth |
|---|---|
| Date | 2017-06-09 18:38 -0700 |
| References | (1 earlier) <71960bb7-6a65-4c72-b6fc-2f03416014ff@googlegroups.com> <ohesqt$4qp$1@dont-email.me> <ohf1h9$l9e$1@dont-email.me> <Oe2dnd9i39xlpqbEnZ2dnUU7-Y3NnZ2d@earthlink.com> <ohfhcu$3v6$1@dont-email.me> |
| Message-ID | <9fa6e21b-e8b2-45c8-976d-1e4597021071@googlegroups.com> (permalink) |
| Subject | Re: Portable Assembler |
| From | hughaguilar96@gmail.com |
On Friday, June 9, 2017 at 6:21:58 PM UTC-7, Cecil - k5nwa wrote: > On 6/9/2017 7:23 PM, David Schultz wrote: > > On 06/09/2017 03:51 PM, Cecil Bayona wrote: > >> 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 wrote a MSP430 assembler for eForth and while it isn't fully tested I > > did use it to write and test some code. > > > > The basic MSP430 instructions aren't too difficult to deal with but the > > CPUX extensions are more trouble. So far I have just implemented a few > > that I needed. > > The MSP430 is very nice and after a couple of hours I have the > beginnings of an assembler starting to work, most of the time has been > spent on reading articles when I spend time on the project. Forth is > really a good tool to generate an assembler, a good deal of the things > needed is already inside Forth. For the most part, I don't like CREATE DOES> --- for an assembler however, CREATE DOES> work very well! If you wrote an assembler such as MACRO11 or MASM in an Algol-derived language, you would have to write code to parse the assembly-language source-code, which can be complicated. Also, you would have to write your own macro language, which can be complicated (that is why most assembler's macro language is very prickly and hard to use, such as in FASM). In Forth, your outer interpreter does the parsing for you, and Forth itself is the macro language --- all in all, writing an assembler in Forth is significantly easier than in any Algol-derived language --- it might be comparably easy in Lisp, but I don't know enough about Lisp to comment on that.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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