[Gc] Re: Is RTEMS supported by bdwgc now ?
lj8175 at gmail.com
Sun Apr 3 19:58:55 PDT 2011
Hi Ivan Maidanski,
when I port bdwgc to RTEMS on x86 platform, I configure the gcconfig.h as
# ifdef RTEMS
# define OS_TYPE "RTEMS"
extern int etext;
# define DATASTART ((ptr_t)((((word) (etext)) + 0xfffff) & ~0xfffff))
# define DATAENT ((ptr_t)(DATASTART + 0xfffff))
# define STACKBOTTOM ((ptr_t) 0x03fff000)
After solving some problem when cross compiling, I get the libgc.a.
But, when I use GC_get_heap_size() in my program, it just return 0...
Can you give me some advices for fixing this? Thank you very much!
2011/4/3 lj8175 at gmail.com
>> I want to port bdwgc to RTEMS on x86 platform. When I use ./configure
>> --target=i386-rtems4.10 to point the cross i386-rtems4.10-gcc, this doesn't
>> work. It still use the system's gcc. So, could you give me an advice on how
>> to use cross-gcc to compile it ?
>> Hi, I have solved this problem through add CC=i386-rtems4.10-gcc, CXX and
> so on as environment variables. ^_^
>> 2011/4/3 Ivan Maidanski
>>> Proper virtual memory support is required for incremental/generational
>>> modes of GC (which are optional).
>>> If you'd like to port GC to a new arch, please look into
>>> Nobody tried to use GC with RTEMS. At least, I'm not aware of (and RTEMS
>>> is not mentioned anywhere in the codebase of GC).
>>> Tip: it's better if you will experiment with the recent CVS snapshot of
>>> BDWGC instead of using some release tarball.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gc