libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libjit] Endless loop on jit_function_compile


From: Mario Morgenthum
Subject: Re: [Libjit] Endless loop on jit_function_compile
Date: Wed, 18 Nov 2015 12:10:00 +0100

Hi Aleksey,

it seems that libjit doesn't support the microsoft x64 calling convention (see jit_builtin_apply in jit-apply-x86-64.h ... this is system v x64 -> https://en.wikipedia.org/wiki/X86_calling_conventions#System_V_AMD64_ABI). Cygwin uses the native windows calling convention (see https://cygwin.com/cygwin-ug-net/programming.html#gcc-64). I think thats the problem.

Regards

2015-11-18 6:32 GMT+01:00 Aleksey Demakov <address@hidden>:
Hi Mario,

> On 18 Nov 2015, at 02:01, Mario Morgenthum <address@hidden> wrote:
>
> Hey,
>
> I tried to compile libjit on windows with cygwin64, but it crashed with a segfault on gen-apply (already tried to compile with -O0 and some other options). Now I built it with --host=i686-w64-mingw32 (and i686-pc-cygwin). Dumping a function with jit_dump_function works, but every time I want to compile it with jit_function_compile, the application ends in an endless loop ... even with an empty function. The same application works with os x. Are there any known issues/solutions for this problem?
>
> Thank you


IIIRC I never tried it with cygwin64, if you will be able to come up with a patch, I’d happily apply it. I might try to solve the problem too but it will take some time unfortunately.

Regards,
Aleksey


reply via email to

[Prev in Thread] Current Thread [Next in Thread]