dotgnu-libjit
[Top][All Lists]
Advanced

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

Re: [Dotgnu-libjit] RE: Declaring temporary array


From: Kirill Kononenko
Subject: Re: [Dotgnu-libjit] RE: Declaring temporary array
Date: Fri, 9 Apr 2010 18:50:27 +0400

Hello



On 2 March 2010 03:53, Shasank Chavan <address@hidden> wrote:
> Hi.  I just sent an email (see below) regarding arrays.  I just noticed
> that you have an alloca instruction, which is what I was looking for.
> Presumably jit_insn_alloca() returns a jit void pointer type.  If I have
> this right, and this is how you would implement arrays on the stack,
> then there's no need to respond to my question.  Thanks.


It depends on what you need exactly in your implementation. You can
just as well use a jit_insn_call_native to a malloc, or another memory
allocation function declared in any shared libraries. Such functions
have to be accessible from your C language code.


>
> - Shasank
>
> ________________________________
> From: address@hidden
> To: address@hidden
> Subject: Declaring temporary array
> Date: Mon, 1 Mar 2010 15:16:39 -0800
>
> Hi.  I'm really new to libjit, so this question is likely to be one you've
> seen before (although I could not find it in your archives).  I'd like to
> create a temporary array from the stack (not heap) using libjit.  I noticed
> that the only types of values that can be created are standard types (ints,
> bytes, etc) and structs/unions.  Would I need to create an array using
> structs, where all the fields required in the array are the same type?  That
> doesn't seem right, so I suspect I have it wrong.  I would appreciate your
> help on declaring this array off the stack - my alternative would be to pass
> in a "temp array' into the function I'm building so references can be made
> into it.
>
> Also, a few other questions:
>
> 1. It seems like the max optimization level supported in libjit is 0.
> Perhaps I don't have the latest version?
> 2. Any work going on in supportin ia64 code generation?
>
> Thanks.
>
> - Shasank
>
> ________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.
> ________________________________
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up
> now.
> _______________________________________________
> Dotgnu-libjit mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/dotgnu-libjit
>
>


Regards,
Kirill




reply via email to

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