Santos Merino <santitox at hotmail.es> writes:> When the ExecutionEngine finishs the JIT execution it says: > > Result: 16777216There is nothing wrong with the IR code you initially posted. If you are obtaining that result, it must be caused by other factor. My guess is that you are messing up with the stack by calling the function the wrong way or by obtaining the result from the JIT engine inappropriately. Please show a test case that is complete and minimal and that demonstrates your problem.
I have found that the problem is the endianness of Values. For example a 1 it's stored as 00000001 00000000 00000000 0000000 instead of 0000000 00000000 0000000 00000000 so how can I change how the values are stored and/or load (because I suppose that the problem is when I store it or load from memory) Thanks, Santos Merino.
On May 27, 2012, at 9:15 PM, Santos Merino wrote:> I have found that the problem is the endianness of Values. For example a 1 it's > stored as 00000001 00000000 00000000 0000000 instead of 0000000 00000000 0000000 > 00000000 so how can I change how the values are stored and/or load (because I > suppose that the problem is when I store it or load from memory)Are you setting up the module's TargetData string correctly? -Chris