Artifact 8854966ed035cf9b0cbab3591c92000cbe496076948234af9a14d0b8bbae483a:
- Executable file
r38/util/mkreduce.psl
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1904) [annotate] [blame] [check-ins using] [more...]
#!/bin/csh -f # mkreduce --- Make basic REDUCE executable file. # Author: Anthony C. Hearn. # source $reduce/util/reduce-names setenv rexec $reduce/lisp/psl/$MACHINE/red rm -f $reduce/log/mkreduce.log if ( -e $rexec/reduce.img ) then mv $rexec/reduce.img $rexec/,reduce.img else if ( -e $rexec/reduce && `wc -c < $rexec/reduce` >> 10000 ) then mv $rexec/reduce $rexec/,reduce endif date > $reduce/log/mkreduce.log pushd $reduce/lisp/psl/$MACHINE/psl ./bpsl -td 12000000 >>& $reduce/log/mkreduce.log << EOF (setq symbolfilename* "$reduce/lisp/psl/$MACHINE/psl/bpsl") (setq loaddirectories* '("" "\$reduce/lisp/psl/$MACHINE/red/" "\$reduce/lisp/psl/$MACHINE/psl/")) (reclaim) (setq !*init!-stats!* (list (time) (gtheap nil) (free-bps) nextsymbol)) % Load REDUCE code % (flag '(atsoc) 'lose) (dskin "$reduce/packages/support/mkredpsl.sl") (cond ((and (memq 'sparc lispsystem!*) (getd 'supersparc))(supersparc))) % Print some statistics (prog nil (reclaim) (terpri) (prin2 "Time for build: ") (prin2 (quotient (difference (time) (car !*init!-stats!*)) 1000.0)) (prin2t " secs") (prin2 "Symbols used: ") (prin2t (difference nextsymbol (cadddr !*init!-stats!*))) (prin2 "Heap used: ") (prin2t (difference (cadr !*init!-stats!*) (gtheap nil))) (prin2 "BPS used: ") (prin2t (difference (caddr !*init!-stats!*) (free-bps))) (prin2 "Heap left: ") (prin2t (gtheap nil)) (prin2 "BPS left: ") (prin2t (free-bps)) (setq !*init!-stats!* nil)) % Save an executable dump file (savesystem "REDUCE" "$rexec/reduce" '((read-init-file "reduce"))) (bye) EOF popd if ( -f $rexec/reduce.img ) then # $reduce/util/sparsify $rexec/reduce.img chmod o+r $rexec/reduce.img else if ( -e $rexec/reduce ) then # $reduce/util/sparsify $rexec/reduce chmod o+x $rexec/reduce endif date >> $reduce/log/mkreduce.log