[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] nursery logic
From: |
Brandon J. Van Every |
Subject: |
[Chicken-users] nursery logic |
Date: |
Fri, 14 Jul 2006 23:08:31 -0700 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
Makefile.am has a script that configures chicken-defaults.h with a
nursery value. The following condition will never be reached:
if [ $$bestn -eq 0 ]; then \
nursery="256*1024"; \
echo "hm, no decent nursery value here ... using 256K"; \
because
if [ $$bestn -eq 0 ]; then \
best=$$tm; \
bestn=$$n; \
is always executed on the first pass, and n is never 0. n is a member of
for n in 16 24 32 48 64 128 256 512 1024; do \
I point this out in case the desired logic is other than the actual
logic. Also I wonder whether you want less-than-or-equal or simply
less-than:
elif [ $$tm -le $$best ]; then \
best=$$tm; \
bestn=$$n; \
less-than-or-equal says "if all things are the same, then prefer a
bigger nursery." less-than would say "...prefer a smaller nursery."
Cheers,
Brandon Van Every
- [Chicken-users] nursery logic,
Brandon J. Van Every <=