From: Arno P. <ar...@pu...> - 2010-11-23 04:38:18
|
On 11/22/10 7:11 PM, Troy Gaines wrote: > Can someone tell me why I get this in the cross compiled code (Java -> > Objective C)? > > ERROR("dex:add-long"); It means that there is currently no support for this instruction. I just added it because it was simple to fix. > I also noticed when cross compiling some code with longs, I get overflow > warnings in xCode. > > For example, I cross compile this statement in Java to Objective C: > > long l = 6221821273427820544; > > to > > _r13.l = 6221821273427820544; //xCode complains about this line > > > Instead of using the "long" data type in Objective C, has "long long" > been considered. This seems like it might fix the above issue. Wow! Now that is interesting. You are right: under iOS sizeof(long) == 4 whereas sizeof(long long) == 8. I am surprised that no one ran into this problem before. Anyways, I fixed both problems in the repository. Thanks for reporting this! Arno |