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

Ivan Maidanski ivmai at
Sun Apr 10 01:26:00 PDT 2011


Mail server is a bit too restrictive. Have you joined the list? Also, try to exclude hieroglyphs from your email address.

Yes, I have seen your attached files:
1. I've placed that unistd include into gcconfog.h (where DATASTART is defined for RTEMS) but I haven't committed the patch yet.
2. I don't have any advice for you related to screen.txt.
3. If GC tests require patching to be runnable on the target, please send me the patch.


Sun, 10 Apr 2011 16:16:24 +0800  <lj8175 at>:

Hi Ivan Maidanski,
Have you received my email that containing screen.txt? My email sended to gc-mailling-list is always considered as SPAM, so I often send one more times. Hope you don't mind. :) 
Below is an example:
Content analysis details:   (5.0 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is freemail

2011/4/10 刘杰 <lj8175 at>
Hi Ivan Maidanski,  
I use 'cvs -z3 -d:pserver:anonymous at co -P bdwgc' to checkout your code. And then configure it as './configure --disable-shared --disable-threads --target=i386-rtems4.10 --host=i386-rtems4.10 --libdir=/opt/rtems-4.10/i386-rtems4.10/lib --includedir=/opt/rtems-4.10/i386-rtems4.10/include --prefix=/home/rtems/bdwgc/install', after add some header files as:Index: alloc.c</div>===================================================================RCS file: /cvsroot/bdwgc/bdwgc/alloc.c,vretrieving revision 1.67diff -r1.67 alloc.c24a25,28> #if defined(RTEMS)> # include<sys/unistd.h>> #endif> Index: reclaim.c</div>===================================================================RCS file: /cvsroot/bdwgc/bdwgc/reclaim.c,vretrieving revision 1.23diff -r1.23 reclaim.c19a20,23> #if defined(RTEMS)> # include<sys/unistd.h>> #endif> 
Now, I can get my libgc.a. I use follow to test my code:
>   int i;>   GC_INIT();> >   for(i=0;i<10000000;++i){>     int **p=(int **)GC_MALLOC(sizeof(int *));>     int *q=(int *)GC_MALLOC_ATOMIC(sizeof(int));>     assert(*p==0);>     *p=(int *)GC_REALLOC(q,2*sizeof(int));>     if(i%100000==0)> 	    printf("Heap size=%d\n",GC_get_heap_size());>   }It's output has attached as screen.txt.  I am trying to test bdwgc for RTEMS/i386 cleanly, but RTEMS doesn't support virtual memory and has it's own  entry point as Init but not main, so I need to  modify the code in bdwgc/tests. 
If you are interested in or have experience in that, I want to get some advices form you.  ^_^
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Gc mailing list