Initial revision
[libfirm] / ir / common / tune.h
1 /* Tune --- tunable parameters.
2    Copyright (C) 1995, 1996 Markus Armbruster & Christian von Roques */
3
4 #ifndef _TUNE_H
5 #define _TUNE_H
6
7 /* From the jargon file:
8
9    :tune: vt.  [from automotive or musical usage] To optimize a
10       program or system for a particular environment, esp. by adjusting
11       numerical parameters designed as {hook}s for tuning, e.g., by
12       changing `#define' lines in C.  One may `tune for time'
13       (fastest execution), `tune for space' (least memory use), or
14       `tune for configuration' (most efficient use of hardware).  See
15       {bum}, {hot spot}, {hand-hacking}.
16
17  */
18
19
20 /* Suggested minimal block size for buffered I/O */
21 #define TUNE_SMALL_IOBUF_SIZE 512
22
23 /* Size of pdeq block cache */
24 #define TUNE_NSAVED_PDEQS 16
25
26
27 /* The following numbers are only estimates.  If the input exceeds
28    them, the program dynamically enlarges data structures.  However,
29    larger values generally mean slower startup.  */
30
31
32 /* Expected number of distinct identifiers */
33 #define TUNE_NIDENTS 1024
34
35 /* Expected number of classes */
36 #define TUNE_NCLASSES 128
37
38 /* Expected number of class types */
39 #define TUNE_NCTYPES 128
40
41 /* Expected number of routine, stream and stream object types */
42 #define TUNE_NMTYPES 512
43
44 /* Expected number of method families */
45 #define TUNE_NMFAMILIES (TUNE_NCTYPES * 16)
46
47 /* Expected number of Intermediate Representation nodes for a method */
48 #define TUNE_NIR_NODES 512
49
50 /* Expected number of distinct constant target values */
51 #define TUNE_NCONSTANTS 2048
52
53 /* notify configuration manager to prefetch sources */
54 #define TUNE_PREFETCH
55
56 #endif