From 27f841e3ba122cfb714bd20bd7f14acaf6d64e5f Mon Sep 17 00:00:00 2001 From: crc Date: Wed, 13 Nov 2019 21:24:11 +0000 Subject: [PATCH] reduce default image size; max number of open files FossilOrigin-Name: dcc17eea2f46a1bb50e0039d60c5921ea5482b15b70b0a2859086568a34026a4 --- make-book.retro | 3 +-- source/interfaces/retro-unix.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/make-book.retro b/make-book.retro index 36aba82..53173b1 100755 --- a/make-book.retro +++ b/make-book.retro @@ -15,8 +15,7 @@ it using separate file to make the actual editing process easier for me. ~~~ -{ - 'Overview +{ 'Overview 'Obtaining-Retro 'Building-Unix 'Building-Windows diff --git a/source/interfaces/retro-unix.c b/source/interfaces/retro-unix.c index 269abbd..c858945 100644 --- a/source/interfaces/retro-unix.c +++ b/source/interfaces/retro-unix.c @@ -48,7 +48,7 @@ #define CELL_MAX LLONG_MAX - 1 #endif -#define IMAGE_SIZE 524288 * 2 /* Amount of RAM. 4MiB (1M) cells */ +#define IMAGE_SIZE 524288 /* Amount of RAM, in cells */ #define ADDRESSES 256 /* Depth of address stack */ #define STACK_DEPTH 256 /* Depth of data stack */ @@ -61,7 +61,7 @@ #define NUM_DEVICES 10 /* Set the number of I/O devices */ -#define MAX_OPEN_FILES 128 +#define MAX_OPEN_FILES 32 /*---------------------------------------------------------------------