[Mono-dev] PPC issue – Mono 4.4.2

Bernhard Urban beurba at microsoft.com
Wed Sep 14 17:36:14 UTC 2016


Hi Mukund,

you can use `MONO_VERBOSE_METHOD' to get debug output by the JIT compiler:

MONO_VERBOSE_METHOD="System.Math::Ceiling" mono -O=-aot <your_exe>.exe


among other things, that should show you the generated code.  I don't have access to my PPC hardware right now, I can look into it in a week.


-Bernhard

________________________________________
From: Mono-devel-list <mono-devel-list-bounces at lists.dot.net> on behalf of dump dumber <dump.dumb.dumber at gmail.com>
Sent: Monday, September 12, 2016 6:53:44 PM
To: Mono-devel-list at lists.dot.net
Subject: [Mono-dev] PPC issue – Mono 4.4.2

Hi,

I have built a ppc version of mono 4.4.2.
I cann  run it fine on x86_64 and ppc64 but not on ppc.
The piece that fails is: Math.Ceiling() function call.

using System;
class Program
{
        static void Main()
        {
                double ceiling1 = Math.Ceiling(123.256);
                Console.WriteLine(ceiling1);
        }
}

On ppc, I get this
# mono test.exe
123.256

Does anyone have any idea on why this fails. Is this a know issue?
Any recommendations on where there problem could be. I am suspecting JIT but entirely sure how to debug it.

Any help resolving this issue would be huge.
Please ask if you need any more info.

Thanks,
Mukund J


More information about the Mono-devel-list mailing list