RMann@his-phoenix-multics.arpa (Roger Mann) (07/27/88)
WHat is the memory requirement for SBProlog ? I have a 1meg A500 and get "Not enough Core" when I try to load it with execute Prolog. Can I change the allocated memory by recompiling ? Roger Mann RMann%pco@BCO-MULTICS.ARPA
roch@m.cs.uiuc.edu (07/27/88)
In regards to running Stony Brook Prolog on a one meg machine: No, you don't need to recompile. In the manual, several switches are described (see simulator options) which control the amount of memory to be allocated. This is in section 7.2 (page 57 in my troffed manual). The two that you should tinker with are: -m size1 -p size2 Size1 and size2 should be integers telling how many 32 bit words should be allocated to: -m the local stack and heap -p the program area They both default to 100000 words. Also the trail stack may be set using the -b size3 option. By default, it is set to the size of the local stack and heap / 5. Each of these allocations request contiguous blocks, so if your memory is fragmented (e.g. you just finished playing destroy the universe, before you were hacking away with mg, ...) chances are that there won't be any blocks large enough. By the way, does anyone know if there's a way to force the OS to merge all adjacent free blocks? For starters, I'd try setting -m and -p to 50000, but you have problems if you're using a lot of the library code (e.g. compiling might not work). Good luck, david roch roch@a.cs.uiuc.edu
jonasf@kuling.UUCP (Jonas Flygare) (08/05/88)
From article <3501@louie.udel.EDU>, by RMann@his-phoenix-multics.arpa (Roger Mann): > WHat is the memory requirement for SBProlog ? I have a 1meg A500 and > get "Not enough Core" when I try to load it with execute Prolog. Can I > change the allocated memory by recompiling ? > > Roger Mann RMann%pco@BCO-MULTICS.ARPA Heh, heh, it's all in the manual.. ;-) Seriously, all you have to do is to edit the scriptfile which starts the prolog, because in it are the sizes for the different stacks. BEWARE!! This beauty *eats* memory and running the prolog in a 1 Meg machine will not be easy. (In fact, I am not sure if it is at all possible...) Also, the SBProlog haven't got a complete GC mechanism, so "bad" programs will eat stack without returning memory. Personally, I run the SBProlog in a 3 Meg machine, and need almost all memory if I want to recompile prolog sources. As soon as I can, I'll get 8 Meg.. ;-) -- Jonas Flygare (aka Flax) +------------------------------------------+ email: jonasf@kuling.UUCP | "Never try to hack while a playful ferret | real: Vaktargatan 32 F:621 | is watching your toes. | S-754 22 Uppsala Sweden +-------- I TRIED....... OUCH! ------------+
owenc@hpindda.HP.COM (Owen Cheung) (08/11/88)
I will be taking a Prolog programming class, but I can't afford to buy 2 Meg of memory but I have a 50meg harddisk. Will the harddisk make a difference? I have read about another Prolog compiler from University of New Hampshire, which will cost me $75, but it will work with just 1 Meg. Have you anything about it? Is it any good? Thanks for any comment! Owen