Mantis - Squeak Packages
Viewing Issue Advanced Details
3452 FFI major always 04-10-06 16:35 04-08-10 14:32
johnmci  
andreas  
normal  
assigned  
open  
none    
none  
0003452: unix FFI makes wrong decision in pushing long long data types
The unix FFI interface attempts to align long long data types on a 8 byte boundary. However if you read the power px ABI it does not imply that you should do this. In testing if you call a procedure with char, long long, or char char long long, then one of these calls will pass the wrong data because of the supposed alignment. The original test cases passed long long, long long or long long and would work because alignment would be quadword setup from the caller within the FFI logic and you lucked out.

There are no notes attached to this issue.