| | 1 | /* |
| | 2 | * Copyright (c) 2001, 2002 Michael J. Roberts. All Rights Reserved. |
| | 3 | * |
| | 4 | * Please see the accompanying license file, LICENSE.TXT, for information |
| | 5 | * on using and copying this software. |
| | 6 | */ |
| | 7 | /* |
| | 8 | Name |
| | 9 | osbigmem.h - define "big memory" defaults for the TADS 2 compiler/ |
| | 10 | interpreter/debugger initialization parameters |
| | 11 | Function |
| | 12 | This is a common header that osxxx.h headers can include to define |
| | 13 | the maximum values for the memory configuration parameters for the |
| | 14 | TADS 2 tools. Many modern systems have sufficient memory that there's |
| | 15 | no reason not to choose the largest values for these parameters. |
| | 16 | Notes |
| | 17 | |
| | 18 | Modified |
| | 19 | 12/04/01 MJRoberts - Creation |
| | 20 | */ |
| | 21 | |
| | 22 | #ifndef OSBIGMEM_H |
| | 23 | #define OSBIGMEM_H |
| | 24 | |
| | 25 | /* |
| | 26 | * Define the largest sizes for the memory configuration parameters |
| | 27 | */ |
| | 28 | #define TCD_SETTINGS_DEFINED |
| | 29 | #define TCD_POOLSIZ (24 * 1024) |
| | 30 | #define TCD_LCLSIZ (16 * 1024) |
| | 31 | #define TCD_HEAPSIZ 65535 |
| | 32 | #define TCD_STKSIZ 512 |
| | 33 | #define TCD_LABSIZ 8192 |
| | 34 | |
| | 35 | #define TRD_SETTINGS_DEFINED |
| | 36 | #define TRD_HEAPSIZ 65535 |
| | 37 | #define TRD_STKSIZ 512 |
| | 38 | #define TRD_UNDOSIZ 60000 /* WARNING: above 65535 will cause crashes */ |
| | 39 | |
| | 40 | #define TDD_SETTINGS_DEFINED |
| | 41 | #define TDD_HEAPSIZ 65535 |
| | 42 | #define TDD_STKSIZ 512 |
| | 43 | #define TDD_UNDOSIZ 60000 /* WARNING: above 65535 will cause crashes */ |
| | 44 | #define TDD_POOLSIZ (24 * 1024) |
| | 45 | #define TDD_LCLSIZ 0 |
| | 46 | |
| | 47 | /* |
| | 48 | * define usage strings for the new defaults |
| | 49 | */ |
| | 50 | #define TCD_HEAPSIZ_MSG " -mh size heap size (default 65535 bytes)" |
| | 51 | #define TCD_POOLSIZ_MSG \ |
| | 52 | " -mp size parse node pool size (default 24576 bytes)" |
| | 53 | #define TCD_LCLSIZ_MSG \ |
| | 54 | " -ml size local symbol table size (default 16384 bytes)" |
| | 55 | #define TCD_STKSIZ_MSG " -ms size stack size (default 512 elements)" |
| | 56 | #define TCD_LABSIZ_MSG \ |
| | 57 | " -mg size goto label table size (default 8192 bytes)" |
| | 58 | |
| | 59 | #define TRD_HEAPSIZ_MSG " -mh size heap size (default 65535 bytes)" |
| | 60 | #define TRD_STKSIZ_MSG " -ms size stack size (default 512 elements)" |
| | 61 | #define TRD_UNDOSIZ_MSG \ |
| | 62 | " -u size set undo to size (0 to disable; default 60000)" |
| | 63 | |
| | 64 | #define TDD_HEAPSIZ_MSG " -mh size heap size (default 65535 bytes)" |
| | 65 | #define TDD_STKSIZ_MSG " -ms size stack size (default 512 elements)" |
| | 66 | #define TDD_UNDOSIZ_MSG \ |
| | 67 | " -u size set undo to size (0 to disable; default 60000)" |
| | 68 | #define TDD_POOLSIZ_MSG \ |
| | 69 | " -mp size parse pool size (default 24576 bytes)" |
| | 70 | |
| | 71 | |
| | 72 | #endif /* OSBIGMEM_H */ |