libjit
[Top][All Lists]
Advanced

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

Re: [Libjit] Why is jit_value_create_long_constant used to parse pointer


From: Aleksey Demakov
Subject: Re: [Libjit] Why is jit_value_create_long_constant used to parse pointer?
Date: Thu, 21 Feb 2019 00:06:57 +0300

Hi Peng,

The correct approach is to use nint constants for pointers.

Regards,
Aleksey

On Wed, Feb 20, 2019 at 8:23 PM Peng Yu <address@hidden> wrote:
>
> Hi,
>
> I see this piece of code. But it converts a string pointer to a long
> type. Is it better to have an interface for pointers in libjit (I
> don't find it)? Thanks.
>
> jit_value_t hostmemptr = jit_value_create_long_constant(
>       F, type_cstring, (long)"foobar");
>
> https://eli.thegreenplace.net/2013/11/12/getting-started-with-libjit-part-2
>
> --
> Regards,
> Peng
>



reply via email to

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