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

Last change on this file since 147 was 147, checked in by orlov, 18 years ago

First working version after rewriting pxx

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 776 bytes
Line 
1// $Source$
2// $Revision: 147 $
3// $Date: 2002-09-01 00:16:12 +0000 (Sun, 01 Sep 2002) $
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
14static uintptr_t const default_heap_size = uintptr_t(1ULL << 28) ;
15static void* const heap_start = (void*)0x60000000 ;
16extern uintptr_t heap_size ;
17extern pxx::HeapAllocator allocator ;
18static void* const stack_start = (void*)0x50000000 ;
19static uintptr_t const default_stack_size = uintptr_t(1ULL << 26) ;
20extern uintptr_t stack_size ;
21
22#if DEBUG
23extern uintptr_t empty_copy ;
24extern uintptr_t lt_copy ;
25extern uintptr_t rt_copy ;
26extern uintptr_t both_copy ;
27#endif
28
29#ifdef TRACE_EXEC // trace of execution is wanted
30#   define D(x)   x
31#else
32#   define D(x)   /*empty*/
33#endif
34
35}
36
37#endif // __rf_common_hh__
Note: See TracBrowser for help on using the repository browser.