[squeak-dev] Cog+NativeBoost @ Mac OS
Igor Stasenko
siguctua at gmail.com
Fri Dec 10 13:05:18 UTC 2010
On 10 December 2010 11:44, Michael Haupt <mhaupt at gmail.com> wrote:
> Hi Igor,
>
> OK, so those are "expected failures". :-)
>
> On 9 December 2010 19:31, Igor Stasenko <siguctua at gmail.com> wrote:
>> Currently the Mac NB code using mostly the linux code, and sure thing
>> it could be different in some places specific to mac.
>
> Are there any larger bodies of example code that could be used to
> identify those places?
>
There is no any 'large bodies of code', because all is dead simple. :)
For most ffi calls, a basic thing you need is to retrieve a function
pointer, like:
NativeBoost loadSymbol: 'gzopen' fromModule: 'libz'
and it doesn't works,
crashing with “EXC_BAD_ACCESS” exception
somewhere in
misaligned_stack_error_
which gives a clue, why i got issues with pow() function before..
mac libs seems don't like misaligned stacks.. so i need to figure out
how to fix that
and align stack pages between the calls properly.
Strange that i met that only on Mac platform, and not before.
Maybe it because mac libs code extensively using MMX registers, which require
to use a properly aligned pointers when you loading the values in them.
> Best,
>
> Michael
>
>
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|