File:  [gforth] / gforth / gforthmi.bat
Revision 1.2: download - view: text, annotated - select for diffs
Sun Dec 13 23:29:59 1998 UTC (25 years, 3 months ago) by pazsan
Branches: MAIN
CVS tags: HEAD
Added some documentation (files stup, blocks stub, Mini-OOF implementation)
Added Benchres for my machine
made DOS and Win32 compile and run
New gforthmi.bat script for DOS - needs a temporary file for the commands
instead of the -e option.
Added select.o again for DOS (DJGPP's select is broken wrt timing)
Improved select.c
Bug with DOS: engine-ditc doesn't compile with optimization on. Maybe I need
to get a new GCC version for DOS?

    1: REM @ECHO OFF
    2: REM Copyright (C) 1997 Free Software Foundation, Inc.
    3: 
    4: REM This file is part of Gforth.
    5: 
    6: REM Gforth is free software; you can redistribute it and/or
    7: REM modify it under the terms of the GNU General Public License
    8: REM as published by the Free Software Foundation; either version 2
    9: REM of the License, or (at your option) any later version.
   10: 
   11: REM This program is distributed in the hope that it will be useful,
   12: REM but WITHOUT ANY WARRANTY; without even the implied warranty of
   13: REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.REM See the
   14: REM GNU General Public License for more details.
   15: 
   16: REM You should have received a copy of the GNU General Public License
   17: REM along with this program; if not, write to the Free Software
   18: REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   19: 
   20: if not "%1"=="" goto makeit
   21: if not "%1"=="--help" goto makeit
   22: if not "%1"=="-h" goto makeit
   23:   echo usage: gforth-makeimage target-name [gforth-options]
   24:   echo   environment: GFORTHD: the Gforth binary used (default: gforth-ditc)
   25:   echo creates a relocatable image 'target-name'
   26:   goto end
   27: :makeit
   28: set outfile=%1
   29: shift
   30: if not "%GFORTHD%"=="" goto doit
   31: set GFORTHD=gforth-d
   32: :doit
   33: echo savesystem tmp.fi1 bye >tmp.fs
   34: %GFORTHD% --clear-dictionary --no-offset-im %1 %2 %3 %4 %5 %6 tmp.fs
   35: echo savesystem tmp.fi2 bye >tmp.fs
   36: %GFORTHD% --clear-dictionary --offset-image %1 %2 %3 %4 %5 %6 tmp.fs
   37: echo comp-image tmp.fi1 tmp.fi2 %outfile% bye >tmp.fs
   38: %GFORTHD% -i kernl32l.fi startup.fs  comp-i.fs tmp.fs
   39: del tmp.fs
   40: del tmp.fi1
   41: del tmp.fi2
   42: :end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>