Re[2]: [Gc] Re: Is RTEMS supported by bdwgc now ?

Ivan Maidanski ivmai at mail.ru
Sat Apr 9 02:12:06 PDT 2011


Hi,

I think you should also fix this in gcconfig.h:

# elif defined(NEXT) || defined(DOS4GW) || defined(NONSTOP) || \
                 (defined(AMIGA) && !defined(GC_AMIGA_FASTALLOC)) || \
                 (defined(SOLARIS) && !defined(USE_MMAP))
#   define GET_MEM(bytes) HBLKPTR((size_t) calloc(1, (size_t)bytes + GC_page_size) \
                                  + GC_page_size-1)

Just add "|| defined(RTEMS)".

It might turn out that some other NEXT- or DOS4GW-specific places in the GC require such fixing.

Regards.


Mon, 4 Apr 2011 10:58:55 +0800 <lj8175 at gmail.com>:

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) &amp; ~0xfffff))#       define DATAENT   ((ptr_t)(DATASTART + 0xfffff))#       define STACKBOTTOM ((ptr_t) 0x03fff000)#   endifAfter 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!
Sincerely,Jie


2011/4/3 lj8175 at gmail.com


2011/4/3 Hi,
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. ^_^ Thanks,Jie
2011/4/3 Ivan Maidanski
Hi,

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 doc/porting.html.
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.

Regards.


_______________________________________________
Gc mailing list
 Gc at linux.hpl.hp.com (sentmsg?compose&amp;To=Gc at linux.hpl.hp.com) 
  (http://www.hpl.hp.com/hosted/linux/mail-archives/gc/)   (http://www.hpl.hp.com/hosted/linux/mail-archives/gc/)  http://www.hpl.hp.com/hosted/linux/mail-archives/gc/ (http://www.hpl.hp.com/hosted/linux/mail-archives/gc/) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20110409/a5be6564/attachment.htm


More information about the Gc mailing list