[Mono-dev] Mono on ARM

FirstName LastName mousse_man at hotmail.com
Thu Sep 4 15:07:31 EDT 2008


Hi,
 
I’m trying to run mono 1.9.1 on the arm (ARM9).  I have an issue when I try to cast a long to a double.  It simply does nothing.
 
·         I’m using soft float in FPA (actually, the configure script seems to detect it properly -> it defines ARM_FPU_FPA).
·         I’m using GNU EABI.
·         When I do a mathematical operation on doubles, it works (Test in C#).
·         When I print (Console.WriteLine) a double, it works (Test in C#).
·         When I cast an int to a double, it works.
·         I tried to define ARM_FPU_NONE and it generates an ExecutionEngineException (so, obviously, I dropped it.)
·         I tried to define __ARM_EABI__ and it generates an ExecutionEngineException (so, obviously, I dropped it.)
 
When I cast a long to a double, it doesn’t work. Here is what I do:
 
int i = 1234;
long l = 1234;
float f = 1234.56;
double d = 1234.56;
double result = 64;
 
result = (double)i;
Console.WriteLine(“Result (cast from int):  “ + result); ->  It shows me 1234.  This is good.
 
result = 64;
result = (double)f;
Console.WriteLine(“Result (cast from float):  “ + result); ->  It shows me 1234.56.  This is also very good.
 
result = 64;
result = (double)I;
Console.WriteLine(“Result (cast from long):  “ + result); ->  It shows me 64 ????  This is not good.
 
Am I missing something? Any other pointers?
 
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/ee8ee6b6/attachment.html 


More information about the Mono-devel-list mailing list