From: Stephen Adams Date: Wed, 2 Nov 1994 20:42:24 +0000 (+0000) Subject: Turned on optimization for worthwhile files: X-Git-Tag: 20090517-FFI~7030 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=899a4b7b8934c9a4eedfd0919bd00c6385af1df8;p=mit-scheme.git Turned on optimization for worthwhile files: gcloop.c: test gc improved from 1.71s to 0.84s. fasload.c: fasloading large files is 20% faster. (Of course, debugging problems in these areas will be hell, unless they optimizations are (trivially) turned back off). --- diff --git a/v7/src/microcode/ntutl/makefile b/v7/src/microcode/ntutl/makefile index 90a77e5d2..f2c1ba631 100644 --- a/v7/src/microcode/ntutl/makefile +++ b/v7/src/microcode/ntutl/makefile @@ -1,43 +1,43 @@ ### -*- Fundamental -*- ### -### $Id: makefile,v 1.15 1994/03/25 01:14:26 gjr Exp $ +### $Id: makefile,v 1.16 1994/11/02 20:42:24 adams Exp $ ### -### Copyright (c) 1992-1993 Massachusetts Institute of Technology +### Copyright (c) 1992-1993 Massachusetts Institute of Technology ### -### This material was developed by the Scheme project at the -### Massachusetts Institute of Technology, Department of -### Electrical Engineering and Computer Science. Permission to -### copy this software, to redistribute it, and to use it for any -### purpose is granted, subject to the following restrictions and -### understandings. +### This material was developed by the Scheme project at the +### Massachusetts Institute of Technology, Department of +### Electrical Engineering and Computer Science. Permission to +### copy this software, to redistribute it, and to use it for any +### purpose is granted, subject to the following restrictions and +### understandings. ### -### 1. Any copy made of this software must include this copyright -### notice in full. +### 1. Any copy made of this software must include this copyright +### notice in full. ### -### 2. Users of this software agree to make their best efforts (a) -### to return to the MIT Scheme project any improvements or -### extensions that they make, so that these may be included in -### future releases; and (b) to inform MIT of noteworthy uses of -### this software. +### 2. Users of this software agree to make their best efforts (a) +### to return to the MIT Scheme project any improvements or +### extensions that they make, so that these may be included in +### future releases; and (b) to inform MIT of noteworthy uses of +### this software. ### -### 3. All materials developed as a consequence of the use of this -### software shall duly acknowledge such use, in accordance with -### the usual standards of acknowledging credit in academic -### research. +### 3. All materials developed as a consequence of the use of this +### software shall duly acknowledge such use, in accordance with +### the usual standards of acknowledging credit in academic +### research. ### -### 4. MIT has made no warrantee or representation that the -### operation of this software will be error-free, and MIT is -### under no obligation to provide any services, by way of -### maintenance, update, or otherwise. +### 4. MIT has made no warrantee or representation that the +### operation of this software will be error-free, and MIT is +### under no obligation to provide any services, by way of +### maintenance, update, or otherwise. ### -### 5. In conjunction with products arising from the use of this -### material, there shall be no use of the name of the -### Massachusetts Institute of Technology nor of any adaptation -### thereof in any advertising, promotional, or sales literature -### without prior written consent from MIT in each case. +### 5. In conjunction with products arising from the use of this +### material, there shall be no use of the name of the +### Massachusetts Institute of Technology nor of any adaptation +### thereof in any advertising, promotional, or sales literature +### without prior written consent from MIT in each case. ### -#### Makefile for Scheme on NT +#### Makefile for Scheme on NT !include #cflags = $(cflags) -DDEVL=1 -D_X86_=1 @@ -66,18 +66,18 @@ sysflags = $(guiflags) syslibs = $(guilibs) cvobj = cvtomf -all: ntscmlib.dll scheme.exe bchschem.exe # bintopsb.exe psbtobin.exe +all: scheme.exe ntscmlib.dll bchschem.exe # bintopsb.exe psbtobin.exe .c.obj: $(cc) $(cflags) $(cdebug) -c $*.c -# $(cc) $(cflags) -Zi -Ox -c $*.c -# $(cvobj) $*.obj +# $(cc) $(cflags) -Zi -Ox -c $*.c +# $(cvobj) $*.obj #.c.s: -# $(CC) $(CFLAGS) -S $*.c +# $(CC) $(CFLAGS) -S $*.c # .m4.asm: -# $(M4) -DTYPE_CODE_LENGTH=6 $*.m4 > $*.asm -# $(AS) $*.asm, $*.obj, nul.lst, nul.crf +# $(M4) -DTYPE_CODE_LENGTH=6 $*.m4 > $*.asm +# $(AS) $*.asm, $*.obj, nul.lst, nul.crf .asm.obj: $(AS) $*.asm @@ -338,18 +338,25 @@ usrdef.tch : usrdef.h config.h object.h prim.h # Zortech MAKE seems not to allow redirection # limits.h : hard-par.exe -# -./hard-par -l > limits.h +# -./hard-par -l > limits.h # float.h : hard-par.exe -# -./hard-par -f > float.h +# -./hard-par -f > float.h hard-par.exe : hard-par.c $(CC) hard-par.c $(MACHINE_SWITCHES) -DNO_SIG -DNO_SC $(LDFLAGS) foo $(USER_PRIM_OBJECTS) : $(HEAD_FILES) + +### files compiled with optimization interp.obj : scheme.tch locks.h trap.h lookup.h history.h cmpint.h zones.h prmcon.h $(cc) $(cflags) $(cdebug) -Ox -c $*.c -# $(cvobj) $*.obj +ntscreen.obj : ntscreen.c ntgui.h ntscreen.h + $(cc) $(cflags) $(cdebug) -Ox -c $*.c +gcloop.obj : scheme.tch $(GC_HEAD_FILES) + $(cc) $(cflags) $(cdebug) -Ox -c $*.c +fasload.obj : + $(cc) $(cflags) $(cdebug) -Ox -c $*.c hooks.obj : scheme.tch prims.h winder.h history.h utils.obj : scheme.tch prims.h winder.h history.h cmpint.h syscall.h