Re: [Bigforth-devel] Turnkey application problems
Brought to you by:
paysan
From: Bernd P. <ber...@gm...> - 2011-03-27 11:36:37
|
Am Sonntag, 27. März 2011, 13:20:57 schrieb David Kuehling: > Hi, > > I'm just trying to turn the brainless chess playing game [1] into a > windows turnkey application using bigforth-2.4.0. Stumbled into two > problems so far: > > - Default search path searches bigforth's library directories before > '.', so it does not load 'environ.fs' which is part of my project but > is shadowed by a file of the same name in the bigforth library > directory. Is this really the case? The default search path starts with ., and when I put an "environ.fs" into the current directory, it loads from there. > I cannot override the search-path using 'setpath', since it is not > part of the default search-order, and i didn't find out where it > hides :/ path is in the default search order, setpath is in DOS. > Had to hand-fix bigforth.ini for now, but this is somewhat > an ugly solution. > > - The bigger problem is, that '(SAVE' doesn't seem to exist nowadays, > and I don't know how to replace it. How do I specify the word to > execute at startup? The cleanest solution would be something like > 'bootmessage' in Gforth, for initializating Brainless, since > afterwards Brainless uses the Forth terminal anyways. The way to go is to use the module system. module brainless include brainless.fs main: go ; module; > BTW on Linux, bigforth is still about 30% faster than Gforth-64bit for > the Brainless benchmark. Probably Gforth bloats code too much and > relies too much on the (too small) BTB. Both. It's rather the other way round: Being only 30% slower than bigForth is a huge achievement of Gforth's approach. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://www.jwdt.com/~paysan/ |