source: to-imperative/trunk/runtime/rf_common.hh @ 703

Last change on this file since 703 was 703, checked in by pooh, 18 years ago
  • Started Word implementation.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 948 bytes
Line 
1// $Source$
2// $Revision: 703 $
3// $Date: 2003-04-30 13:43:12 +0000 (Wed, 30 Apr 2003) $
4
5#ifndef __rf_common_hh__
6#define __rf_common_hh__
7
8#include "pxx_common.hh"
9#include "pxx_heap_allocator.hh"
10
11namespace rfrt
12{
13
14#ifdef ALL_INLINE
15#define INLINE inline
16#else
17#define INLINE
18#endif
19
20static const uint32_t hash_size = 1024 ;
21static uintptr_t const default_heap_size = uintptr_t(1ULL << 28) ;
22static void* const heap_start = (void*)0x60000000 ;
23extern uintptr_t heap_size ;
24extern pxx::HeapAllocator& allocator ;
25static void* const stack_start = (void*)0x50000000 ;
26static uintptr_t const default_stack_size = uintptr_t(1ULL << 26) ;
27extern uintptr_t stack_size ;
28
29#if DEBUG
30extern uintptr_t empty_copy ;
31extern uintptr_t lt_copy ;
32extern uintptr_t rt_copy ;
33extern uintptr_t both_copy ;
34extern uintptr_t unifications ;
35extern uintptr_t identical ;
36#endif
37
38#ifdef TRACE_EXEC // trace of execution is wanted
39#   define D(x)   x
40#else
41#   define D(x)   /*empty*/
42#endif
43
44}
45
46#endif // __rf_common_hh__
Note: See TracBrowser for help on using the repository browser.