Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #22064
| From | Andrew Haley <andrew29@littlepinkcloud.invalid> |
|---|---|
| Subject | Re: The most elegant Forth interpreter. |
| Newsgroups | comp.lang.forth |
| References | (8 earlier) <klmfn2$at2$1@online.de> <dv-dnWXUAepheOPMnZ2dnUVZ_sWdnZ2d@supernews.com> <klmp3i$haf$1@online.de> <eMidnYYBW6WUaePMnZ2dnUVZ_rudnZ2d@supernews.com> <7xy5c0czee.fsf@ruckus.brouhaha.com> |
| Message-ID | <JuWdnd22cdSQ4uLMnZ2dnUVZ_q-dnZ2d@supernews.com> (permalink) |
| Date | 2013-04-30 03:21 -0500 |
Paul Rubin <no.email@nospam.invalid> wrote: > Andrew Haley <andrew29@littlepinkcloud.invalid> writes: >>> Also, porting to another architecture isn't possible with this >>> approach. >> Well, yes. To cross-compile[r] you need a cross-compiler. > > I don't understand the obstacle. Can't you > > 1. Write an assembler (in Forth) that assembles for the target system > 2. Include it in the origin system along with the origin assembler, > 3. Point dictionary at high memory and compile everything including > both assemblers (the origin assembler is needed to compile the > origin system's CODE words) > 4. Remove the origin assembler from the system source and replace all > the CODE words with versions for the target system. Patch address > of CODE in the current origin system so that it uses the target > assembler. > 5. Point dictionary at low memory and compile again > 6. Dump resulting system from low memory to disk or otherwise > transfer it to target system. > > There may be a little hair needed to make the target assembler run on > both systems if they have different word sizes or endianness, but that > seems like standard stuff. > > Do I miss something? You seem to have described a cross-compiler. Andrew.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-27 09:13 +0000
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-27 22:46 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-28 03:37 -0500
Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-28 12:58 +0000
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-28 17:00 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-28 18:26 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-29 03:28 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-29 01:38 -0700
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-29 01:43 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-29 04:01 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-10 21:20 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-11 02:03 -0500
Re: The most elegant Forth interpreter. David Schultz <abuse@127.0.0.1> - 2013-05-11 11:01 -0500
Re: The most elegant Forth interpreter. David Schultz <abuse@127.0.0.1> - 2013-05-11 15:53 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-11 20:59 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-12 02:40 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-12 22:12 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-13 02:26 -0500
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-05-13 03:46 -0500
Re: The most elegant Forth interpreter. David Schultz <abuse@127.0.0.1> - 2013-05-12 07:53 -0500
Re: The most elegant Forth interpreter. visualforth@rocketmail.com - 2013-05-12 20:15 -0700
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-12 21:43 -0700
Re: The most elegant Forth interpreter. "Elizabeth D. Rather" <erather@forth.com> - 2013-04-29 08:07 -1000
Re: The most elegant Forth interpreter. Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-29 20:55 +0200
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-29 16:28 -0500
Re: The most elegant Forth interpreter. Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-29 23:35 +0200
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-29 17:28 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-29 23:20 -0700
Re: The most elegant Forth interpreter. "Elizabeth D. Rather" <erather@forth.com> - 2013-04-29 21:11 -1000
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-30 03:21 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-30 01:57 -0700
Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-30 09:00 +0000
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-30 02:10 -0700
Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-30 14:34 +0000
Re: The most elegant Forth interpreter. Coos Haak <chforth@hccnet.nl> - 2013-04-30 17:18 +0200
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-30 10:04 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-30 04:13 -0500
Re: The most elegant Forth interpreter. Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-30 18:40 +0200
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-30 12:50 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-03 22:01 -0700
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-30 04:09 -0500
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-05-06 19:29 -0700
Re: The most elegant Forth interpreter. Elizabeth D Rather <erather@forth.com> - 2013-04-29 12:35 -1000
Re: The most elegant Forth interpreter. Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-30 01:50 +0200
Re: The most elegant Forth interpreter. "Elizabeth D. Rather" <erather@forth.com> - 2013-04-29 13:55 -1000
Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-30 09:03 +0000
Re: The most elegant Forth interpreter. albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-04-29 10:32 +0000
Re: The most elegant Forth interpreter. Paul Rubin <no.email@nospam.invalid> - 2013-04-29 08:34 -0700
Re: The most elegant Forth interpreter. "Rod Pemberton" <do_not_have@notemailnotq.cpm> - 2013-04-29 17:31 -0400
Re: The most elegant Forth interpreter. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-04-29 17:56 -0500
Re: The most elegant Forth interpreter. lynx <rinkasu@kaze.void.null> - 2013-04-29 22:38 +0000
Re: The most elegant Forth interpreter. "Ed" <invalid@nospam.com> - 2013-04-29 12:31 +1000
Re: The most elegant Forth interpreter. Spam@ControlQ.com - 2013-04-29 13:31 -0400
Re: The most elegant Forth interpreter. jlarsonfour3@gmail.com - 2013-04-29 08:14 -0700
Re: The most elegant Forth interpreter. the_gavino_himself <visphatesjava@gmail.com> - 2013-04-29 10:28 -0700
csiph-web