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


Groups > comp.lang.forth > #14208

Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for....

Newsgroups comp.lang.forth
From Albert van der Horst <albert@spenarnc.xs4all.nl>
Subject Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for....
Date 2012-07-20 15:02 +0000
Message-ID <m7gsgf.3ih@spenarnc.xs4all.nl> (permalink)
Organization Dutch Forth Workshop
References <2a5baeb8-2c72-41a6-8648-d52842405f18@n16g2000vbn.googlegroups.com> <wbOdnWwHX40ca5rNnZ2dnUVZ8lSdnZ2d@supernews.com> <m7f79o.4zm@spenarnc.xs4all.nl> <AoSdnRyPuOGE15XNnZ2dnUVZ8vWdnZ2d@supernews.com>

Show all headers | View raw


In article <AoSdnRyPuOGE15XNnZ2dnUVZ8vWdnZ2d@supernews.com>,
Andrew Haley  <andrew29@littlepinkcloud.invalid> wrote:
>Albert van der Horst <albert@spenarnc.xs4all.nl> wrote:
>> In article <wbOdnWwHX40ca5rNnZ2dnUVZ8lSdnZ2d@supernews.com>,
>> Andrew Haley  <andrew29@littlepinkcloud.invalid> wrote:
>>>Albert van der Horst <albert@spenarnc.xs4all.nl> wrote:
>>>> In article <ju7ifu02cet@enews2.newsguy.com>, WJ <w_a_x_man@yahoo.com> wrote:
>>>>>Anton Ertl wrote:
>>>>>
>>>>>> BTW, the source code for ;S and ?BRANCH is:
>>>>>>
>>>>>> ;s   ( R:w -- )              gforth  semis
>>>>>> ""The primitive compiled by @code{EXIT}.""
>>>>>> #ifdef NO_IP
>>>>>> INST_TAIL;
>>>>>> goto *(void *)w;
>>>>>> #else
>>>>>> SET_IP((Xt *)w);
>>>>>> #endif
>>>>>>
>>>>>> condbranch(?branch,f --,f83  question_branch,
>>>>>> ,if (f==0) {
>>>>>> ,:
>>>>>>  0= dup 0=          \ !f f
>>>>>>  r> tuck cell+      \ !f branchoffset f IP+
>>>>>>  and -rot @ and or  \ f&IP+|!f&branch
>>>>>>  >r ;)
>>>>>>
>>>>>> There's some m4 in this, some Vmgen, some C, and some Forth.
>>>>>
>>>>>KISS
>>>>>
>>>>>(Keep it simple, stupid.)
>>>>
>>>> I can confirm that m4 is sometimes just the best solution for
>>>> a problem. To generate ciforth's I use m4 to massage assembler
>>>> files.
>>>
>>>Sure, but if your Forth was written in Forth you wouldn't have to do
>>>any of this stuff.
>>
>> A fair comparison would be to require that the result is a windows
>> executable, and the Forth code is acceptable to 4 Forth compilers on
>> Windows.
>> Then I definitely need a whole slew of m4 code.
>
>I don't really understand why this is a goal.  If your Forth could
>build itself, why would you want to build it on some other Forth?  I
>dont think I've ever heard of a Forth in Forth that builds itself on
>*any* Forth.

It was pretty easy to port ciforth to OSX. You would magically assume
that you already have your Forth on OSX in order to bootstrap it.
If you OTOH cross build the OSX Forth on a working MS Windows Forth
then you have to study the layout of the executables on OSX.
I use the built in knowledge of the OSX system tools.

No free lunch here.

>
>Andrew.

Groetjes Albert

--
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

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


Thread

Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-09 23:58 -0700
  Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-10 01:22 -0700
    Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 02:54 -0700
      Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-10 03:44 -0700
        Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-10 10:13 -0500
          Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 18:30 -0700
  Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-10 01:22 -0700
    Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 01:27 -0700
  Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Ron Aaron <rambamist@gmail.com> - 2012-07-10 11:30 +0300
    Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-10 01:58 -0700
      Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Ron Aaron <rambamist@gmail.com> - 2012-07-10 15:33 +0300
      Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-10 18:32 +0000
    Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-10 18:31 +0000
  Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Howerd <howerdo@yahoo.co.uk> - 2012-07-10 03:52 -0700
  Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-10 14:22 +0200
    Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-07-10 13:20 +0000
      Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-11 00:56 -0700
        Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-11 01:49 -0700
          Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-11 02:29 -0700
          Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "Elizabeth D. Rather" <erather@forth.com> - 2012-07-11 07:29 -1000
            Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-07-11 17:23 -0700
          Re: Anonimity was Re: doing exercises for starting etc. Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-11 17:57 -0700
            Re: Anonimity was Re: doing exercises for starting etc. "Elizabeth D. Rather" <erather@forth.com> - 2012-07-11 16:14 -1000
            Re: Anonimity was Re: doing exercises for starting etc. Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-12 12:04 +0000
              Re: Anonimity was Re: doing exercises for starting etc. Mark Wills <markrobertwills@yahoo.co.uk> - 2012-07-12 04:37 -0700
                Re: Anonimity was Re: doing exercises for starting etc. "A. K." <akk@nospam.org> - 2012-07-12 18:32 +0200
                Re: Anonimity was Re: doing exercises for starting etc. Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-13 01:37 +0000
                Re: learning forth, and you wak jobs quit changing the subject quiet_lad <gavcomedy@gmail.com> - 2012-07-17 16:22 -0700
      Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "WJ" <w_a_x_man@yahoo.com> - 2012-07-18 23:56 +0000
        Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-19 11:35 +0000
          Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-19 06:58 -0500
            Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-07-19 12:48 +0000
              Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-19 09:03 -0500
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-19 16:07 +0200
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "Elizabeth D. Rather" <erather@forth.com> - 2012-07-19 08:51 -1000
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-19 19:15 +0000
            Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-19 18:27 +0000
              Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-19 12:55 -0500
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Paul Rubin <no.email@nospam.invalid> - 2012-07-19 12:31 -0700
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-19 22:48 +0200
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Paul Rubin <no.email@nospam.invalid> - 2012-07-21 21:25 -0700
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-20 04:04 -0500
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... "Elizabeth D. Rather" <erather@forth.com> - 2012-07-20 08:14 -1000
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Paul Rubin <no.email@nospam.invalid> - 2012-07-21 01:28 -0700
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-07-20 15:02 +0000
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-07-20 11:24 -0500
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... vandys@vsta.org - 2012-07-20 17:14 +0000
                Re: doing exercises for starting forth, kinda discouraging, some are easy and some seem text not prepare me for.... Bernd Paysan <bernd.paysan@gmx.de> - 2012-07-20 19:45 +0200

csiph-web