Hi,
just wanted to ask if here are any brave soul running OSX that have
tried to tackle the hyades kit from eclipse:
http://www.eclipse.org/hyades/
From what I can see, it's a profiling toolkit that is set out to
replace the ones in the Java runtime. I took a peek at the code - as
there is no OSX version - and it seemed to me that the first thing
that's missing to get it to run is a set of atomic lock routines...
#elif defined SQLAIXPPC // seems best matching
#define ossAtomicIncByValAndRet32( addr, val ) \
fetch_and_add( (atomic_p)(addr), (val) )
#define ossAtomicIncByValAndRet64( addr, val ) \
fetch_and_addlp( (atomic_l)(addr), (val) )
...
#elif defined SQLAIXPPC
#define ossAtomicPoke32( addr, val ) \
{ \
while ( !compare_and_swap( (atomic_p)(addr), (int *)(addr), (val) )
) ; \
}
#define ossAtomicPoke64( addr, val ) \
{ \
while ( !compare_and_swaplp( (atomic_l)(addr), (long *)(addr), (val)
) ) ; \
}
My guess is that those compare_and_swap are fetch_and_add are just PPC
instructions, but I may be wrong. Any C/GCC/Darwin gurus here that care
to take a peek?
Cheers, Anjo
This archive was generated by hypermail 2.0.0 : Tue Feb 08 2005 - 04:38:24 EST