Diffstat (limited to 'mcon/U/d_speedopt.U')
1 files changed, 62 insertions, 0 deletions
diff --git a/mcon/U/d_speedopt.U b/mcon/U/d_speedopt.U
new file mode 100644
@@ -0,0 +1,62 @@
+?RCS: $Id: d_speedopt.U,v 188.8.131.52 1994/10/29 16:15:51 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: d_speedopt.U,v $
+?RCS: Revision 184.108.40.206 1994/10/29 16:15:51 ram
+?RCS: patch36: call ./Cppsym explicitely instead of relying on PATH
+?RCS: Revision 3.0 1993/08/18 12:07:27 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:d_speedopt: Myread Cppsym Oldconfig cat models Setvar
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines the SPEED_OVER_MEM symbol, which
+?S: indicates to the C program that it can burn memory in order to save
+?S: CPU time.
+?C: This symbol, if defined, indicates that the program can use more
+?C: memory in order to reduce CPU time. The symbol doesn't say whether
+?C: we are more interested in saving text space or data space.
+?H:#$d_speedopt SPEED_OVER_MEM /**/
+: do we want speed at the expense of memory
+I can try to optimize this package for either speed or memory. If you have
+limited address space you may wish to optimize for memory. Otherwise you
+should probably optimize for speed.
+case "$d_speedopt" in
+'') if ./Cppsym $smallmach; then
+ case "$models" in
+ *large*|*huge*) dflt=speed;;
+ *) dflt=memory;;
+rp="What to optimize for?"
+case "$ans" in