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