[Gc]How many targets does bdwgc support now?

Jie Liu lj8175 at gmail.com
Fri Jun 3 01:26:18 PDT 2011

Thank you very much, Bruce.

I have seen many cpu architectures in
libatomic_ops/src/atomic_ops/sysdeps/gcc, such as alpha, arm, avr32,
cris, hppa, ia64, m68k, mips, powerpc, s390, sh, sparc, x86, x86_64.

So I think I have found the cpu architectures supported by bdwgc. :)

2011/5/29 Bruce Hoult <bruce at hoult.org>:
> On Sun, May 29, 2011 at 8:09 PM, Jie Liu <lj8175 at gmail.com> wrote:
>> I only see many platforms bdwgc support: Linux, *BSD, recent Windows
>> versions, MacOS X, HP/UX, Solaris, Tru64, Irix and a few other operating
>> systems. (https://www.hpl.hp.com/personal/Hans_Boehm/gc/). But I have not
>> seen any information about the targets bdwgc support, like x86, arm,
>> powerpc.
> bdwgc is written in C. It is much more dependent on the functions
> available from the operating system than on the CPU.
> bdwgc always needs to have a way to obtain the contents of the CPU
> registers to use as GC roots. This can benefit from specialized
> assembly language, but usually the setjmp() provided by the operating
> system is sufficient.
> Certain build options require the use of atomic operations but these
> are also provided by a library, not by bdwgc itself, and simple uses
> don't require it at all.

More information about the Gc mailing list