Fwd: [Gc] Re: Is RTEMS supported by bdwgc now ?
Jie Liu
lj8175 at gmail.com
Sun Apr 10 01:37:05 PDT 2011
Hi,
I have joined the list. Thank you for your advice !
Thanks,
Jie
2011/4/10 Ivan Maidanski <ivmai at mail.ru>
> Hi,
>
> 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.
>
> Regards.
>
> Sun, 10 Apr 2011 16:16:24 +0800 <lj8175 at gmail.com>:
>
> 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
> (saumitra_ganguly[at]yahoo.com)
> (lzbthmanning[at]gmail.com)
> ....
>
> 2011/4/10 <lj8175 at gmail.com>
>
>> Hi Ivan Maidanski,
>>
>> I use 'cvs -z3 -d:pserver:anonymous at bdwgc.cvs.sourceforge.net:/cvsroot/bdwgc
>> 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,v
>> retrieving revision 1.67
>> diff -r1.67 alloc.c
>> 24a25,28
>> > #if defined(RTEMS)
>> > # include<sys/unistd.h>
>> > #endif
>> >
>> Index: reclaim.c</div>
>> ===================================================================
>> RCS file: /cvsroot/bdwgc/bdwgc/reclaim.c,v
>> retrieving revision 1.23
>> diff -r1.23 reclaim.c
>> 19a20,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. ^_^
>>
>> Thanks,
>> Jie
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20110410/8d3ce9c5/attachment-0001.htm
More information about the Gc
mailing list