Annotation of gforth/gfgen, revision 1.1
1.1 ! anton 1: #! /bin/sh
! 2: #script similar to vmgen for generating some files from prim.b etc.
! 3: #Copyright (C) 2001,2002,2003 Free Software Foundation, Inc.
! 4:
! 5: #This file is part of Gforth.
! 6:
! 7: #Gforth is free software; you can redistribute it and/or
! 8: #modify it under the terms of the GNU General Public License
! 9: #as published by the Free Software Foundation; either version 2
! 10: #of the License, or (at your option) any later version.
! 11:
! 12: #This program is distributed in the hope that it will be useful,
! 13: #but WITHOUT ANY WARRANTY; without even the implied warranty of
! 14: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
! 15: #GNU General Public License for more details.
! 16:
! 17: #You should have received a copy of the GNU General Public License
! 18: #along with this program; if not, write to the Free Software
! 19: #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
! 20:
! 21: #USAGE: GFORTH=... gfgen $TAG
! 22: #where $tag is "" or "-fast" depending on what you want to process and generate
! 23: TAG=$1
! 24: #only files different between gforth and gforth-fast are generated here
! 25: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.i\" save-mem out-filename 2! s\" prim$TAG.b\" ' output-c ' output-c-combined process-file bye" >engine/prim$TAG.i &&
! 26: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-label dup process-file bye" >engine/prim_lab$TAG.i &&
! 27: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' noop dup process-file bye" >engine/prim_grp$TAG.i &&
! 28: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-forthname dup process-file bye" >engine/prim_names$TAG.i &&
! 29: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-superend dup process-file bye" >engine/prim_superend$TAG.i &&
! 30: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-profile ' output-profile-combined process-file bye" >engine/profile$TAG.i &&
! 31: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-super2-simple ' output-super2-combined process-file bye" >engine/super2$TAG.i &&
! 32: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-costs-gforth-simple ' output-costs-gforth-combined process-file bye" >engine/costs$TAG.i &&
! 33: $GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' output-c-prim-num ' noop process-file bye" >engine/prim_num$TAG.i
! 34: #unused:
! 35: #$GFORTH prims2x.fs -e "c-flag on s\" prim$TAG.b\" ' noop ' output-peephole process-file bye" >engine/peephole$TAG.i &&
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>