--- gforth/INSTALL 1996/10/31 17:41:15 1.23 +++ gforth/INSTALL 1997/02/01 14:59:27 1.26 @@ -98,11 +98,31 @@ You can change the sizes of the various image `gforth.fi' by passing the appropriate Gforth command line options in the FORTHSIZES environment variable: -env "FORTHSIZES=--dictionary-size=256k --data-stack-size=16k --fp-stack-size=16k --return-stack-size=16k --locals-stack-size=16k" ./configure +env "FORTHSIZES=--dictionary-size=256k --data-stack-size=16k --fp-stack-size=15872b --return-stack-size=15k --locals-stack-size=14848b" ./configure The line above reaffirms the default sizes. Note that the locals stack area is also used as input buffer stack. +If C's "long long" do not work properly on your machine (i.e., if the +tests involving double-cell numbers fail), you can build Gforth such +that it does not use "long long": + +env ac_cv_sizeof_long_long=0 ./configure + + + Cross-Configuration + +A few tests made by the configure script do not work in a +cross-compilation situation. You have to provide the results of these +tests by hand. E.g., if you compile for a 386 architecture processor: + +env ac_cv_sizeof_char_p=4 ac_cv_sizeof_short=2 ac_cv_sizeof_int=4 ac_cv_sizeof_long=4 ac_cv_sizeof_long_long=8 ac_cv_c_bigendian=no ./configure + +The ac_cv_sizeof_... variables give the sizes of various C types; +ac_cv_sizeof_char_p is the same as "sizeof(char*)" in C code. The +ac_cv_c_bigendian variable gives the byte order. + + Preloading installation-specific code If you want to have some installation-specific files loaded when @@ -174,6 +194,14 @@ meantime, start gforth with gforth -i kernel.fi startup.fs +If the addresses changes by only a small amount (e.g. by one or two +pages), you can fix it by defining FUZZ (in config.h) to a number at +least two times the changes you observe (0x4000 is a good idea, this +is four 4k pages) and recompile. We do this for the DJGPP port for +DOS, because the start address there changes by one or two pages, and +it helps us to keep the DOS people happy without investing too much +work in a braindead environment. + 2) "%s: Checksum of image ($13579b) does not match the executable ($2468a) The Gforth installer should look into the INSTALL file"