Commit dcdb45e1 authored by Anton Ertl's avatar Anton Ertl
Browse files

Added configure variable STACK_CACHE_REGS and set useful defaults

  currently supported: 0-4 regs, default reg 0-4.
parent 2cd15cb3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ XLDFLAGS = @LDFLAGS@
LDFLAGS	=  $(DEBUGFLAG) $(XLDFLAGS)
LDLIBS	= @LIBS@

STACK_CACHE_REGS = @STACK_CACHE_REGS@
STACK_CACHE_DEFAULT_FAST = @STACK_CACHE_DEFAULT_FAST@

# ------------	Install Directories
@@ -763,8 +764,8 @@ prim.b: prim cache0.vmg
		$(M4) -Dcondbranch_opt=0 $(srcdir)/prim >$@
		sleep 1 #should make hpux-workaround unnecessary

prim-fast.b:	prim cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg peeprules.vmg Makefile.in
		$(M4) -Dcondbranch_opt=@condbranch_opt@ -DSTACK_CACHE_FILE=cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg $(srcdir)/prim >$@
prim-fast.b:	prim cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg cache-regs$(STACK_CACHE_REGS).vmg peeprules.vmg Makefile
		$(M4) -Dcondbranch_opt=@condbranch_opt@ -DSTACK_CACHE_FILE=cache-fast$(STACK_CACHE_DEFAULT_FAST).vmg -DSTACK_CACHE_REGS=cache-regs$(STACK_CACHE_REGS).vmg $(srcdir)/prim >$@
		sleep 1 #should make hpux-workaround unnecessary

$(FORTH_GEN_ENGINE_FAST): prim-fast.b prims2x.fs
+1 −6
Original line number Diff line number Diff line
@@ -55,12 +55,7 @@
\E state S7
\E state S8

\E S3 state-disable
\E S4 state-disable
\E S5 state-disable
\E S6 state-disable
\E S7 state-disable
\E S8 state-disable
include(STACK_CACHE_REGS)

\E ss0 data-stack S0 set-ss
\E ss1 data-stack S1 set-ss
+2 −7
Original line number Diff line number Diff line
\ stack cache setup
\ stack cache setup: default state S1

\ Copyright (C) 2003,2004,2005,2006,2007 Free Software Foundation, Inc.

@@ -59,12 +59,7 @@
\E state S7
\E state S8

\E S3 state-disable
\E S4 state-disable
\E S5 state-disable
\E S6 state-disable
\E S7 state-disable
\E S8 state-disable
include(STACK_CACHE_REGS)

\E ss0 data-stack S0 set-ss
\E ss1 data-stack S1 set-ss
+2 −0
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@
\E state S7
\E state S8

include(STACK_CACHE_REGS)

\E ss0 data-stack S0 set-ss
\E ss1 data-stack S1 set-ss
\E ss2 data-stack S2 set-ss
+2 −0
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@
\E state S7
\E state S8

include(STACK_CACHE_REGS)

\E ss0 data-stack S0 set-ss
\E ss1 data-stack S1 set-ss
\E ss2 data-stack S2 set-ss
Loading