[Bigforth-devel] Turnkey application problems
Brought to you by:
paysan
From: David K. <dvd...@gm...> - 2011-03-27 11:21:10
|
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. 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 :/ 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. Here is the non-working code I'm using: bigforth=c:/Program\ Files/bigforth/bigforth.exe wine "$bigforth" -e 'path' ./brainless.fs \ -e ': GO tui-startup QUIT ; ' \ -e ': (SAVE r> GO (SAVE >r ; ' \ -e 'SAVESYSTEM brainless CR BYE' 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. cheers, David -- GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40 [1] http://sourceforge.net/projects/forth-brainless/ |