[BACK]Return to MacOS_Test_config.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / gc / Mac_files

Annotation of OpenXM_contrib2/asir2000/gc/Mac_files/MacOS_Test_config.h, Revision 1.3

1.1       noro        1: /*
                      2:        MacOS_Test_config.h
                      3:
                      4:        Configuration flags for Macintosh development systems.
                      5:
                      6:        Test version.
                      7:
                      8:        <Revision History>
                      9:
                     10:        11/16/95  pcb  Updated compilation flags to reflect latest 4.6 Makefile.
                     11:
                     12:        by Patrick C. Beard.
                     13:  */
                     14: /* Boehm, November 17, 1995 12:05 pm PST */
                     15:
                     16: #ifdef __MWERKS__
                     17:
                     18: // for CodeWarrior Pro with Metrowerks Standard Library (MSL).
                     19: // #define MSL_USE_PRECOMPILED_HEADERS 0
                     20: #include <ansi_prefix.mac.h>
                     21: #ifndef __STDC__
                     22: #define __STDC__ 0
                     23: #endif
                     24:
                     25: #endif
                     26:
                     27: // these are defined again in gc_priv.h.
                     28: #undef TRUE
                     29: #undef FALSE
                     30:
                     31: #define ALL_INTERIOR_POINTERS  // follows interior pointers.
                     32: //#define SILENT                               // want collection messages.
                     33: //#define DONT_ADD_BYTE_AT_END // no padding.
                     34: //#define SMALL_CONFIG                 // whether to a smaller heap.
                     35: #define NO_SIGNALS                             // signals aren't real on the Macintosh.
                     36: #define USE_TEMPORARY_MEMORY   // use Macintosh temporary memory.
                     37:
                     38: // CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DSILENT
                     39: //
                     40: //LIBGC_CFLAGS= -O -DNO_SIGNALS -DSILENT \
                     41: //    -DREDIRECT_MALLOC=GC_malloc_uncollectable \
                     42: //    -DDONT_ADD_BYTE_AT_END -DALL_INTERIOR_POINTERS
                     43: //   Flags for building libgc.a -- the last two are required.
                     44: //
                     45: // Setjmp_test may yield overly optimistic results when compiled
                     46: // without optimization.
                     47: // -DSILENT disables statistics printing, and improves performance.
                     48: // -DCHECKSUMS reports on erroneously clear dirty bits, and unexpectedly
                     49: //   altered stubborn objects, at substantial performance cost.
                     50: //   Use only for incremental collector debugging.
                     51: // -DFIND_LEAK causes the collector to assume that all inaccessible
                     52: //   objects should have been explicitly deallocated, and reports exceptions.
                     53: //   Finalization and the test program are not usable in this mode.
                     54: // -DSOLARIS_THREADS enables support for Solaris (thr_) threads.
                     55: //   (Clients should also define SOLARIS_THREADS and then include
                     56: //   gc.h before performing thr_ or GC_ operations.)
                     57: //   This is broken on nonSPARC machines.
                     58: // -DALL_INTERIOR_POINTERS allows all pointers to the interior
                     59: //   of objects to be recognized.  (See gc_priv.h for consequences.)
                     60: // -DSMALL_CONFIG tries to tune the collector for small heap sizes,
                     61: //   usually causing it to use less space in such situations.
                     62: //   Incremental collection no longer works in this case.
                     63: // -DLARGE_CONFIG tunes the collector for unusually large heaps.
                     64: //   Necessary for heaps larger than about 500 MB on most machines.
                     65: //   Recommended for heaps larger than about 64 MB.
                     66: // -DDONT_ADD_BYTE_AT_END is meaningful only with
                     67: //   -DALL_INTERIOR_POINTERS.  Normally -DALL_INTERIOR_POINTERS
                     68: //   causes all objects to be padded so that pointers just past the end of
                     69: //   an object can be recognized.  This can be expensive.  (The padding
                     70: //   is normally more than one byte due to alignment constraints.)
                     71: //   -DDONT_ADD_BYTE_AT_END disables the padding.
                     72: // -DNO_SIGNALS does not disable signals during critical parts of
                     73: //   the GC process.  This is no less correct than many malloc
                     74: //   implementations, and it sometimes has a significant performance
                     75: //   impact.  However, it is dangerous for many not-quite-ANSI C
                     76: //   programs that call things like printf in asynchronous signal handlers.
1.3     ! noro       77: // -DGC_OPERATOR_NEW_ARRAY declares that the C++ compiler supports the
1.1       noro       78: //   new syntax "operator new[]" for allocating and deleting arrays.
                     79: //   See gc_cpp.h for details.  No effect on the C part of the collector.
                     80: //   This is defined implicitly in a few environments.
                     81: // -DREDIRECT_MALLOC=X causes malloc, realloc, and free to be defined
                     82: //   as aliases for X, GC_realloc, and GC_free, respectively.
                     83: //   Calloc is redefined in terms of the new malloc.  X should
                     84: //   be either GC_malloc or GC_malloc_uncollectable.
                     85: //   The former is occasionally useful for working around leaks in code
                     86: //   you don't want to (or can't) look at.  It may not work for
                     87: //   existing code, but it often does.  Neither works on all platforms,
                     88: //   since some ports use malloc or calloc to obtain system memory.
                     89: //   (Probably works for UNIX, and win32.)
                     90: // -DNO_DEBUG removes GC_dump and the debugging routines it calls.
                     91: //   Reduces code size slightly at the expense of debuggability.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>