Displaying 20 results from an estimated 220 matches for "ffi".
Did you mean:
efi
2012 Apr 07
5
FFI and msvcrt
Hi,
I''ve been using FFI with a Ruby 1.9.3 built with MSVC++ and it''s been
working well. One thing I''ve run into though is this:
ffi_lib :msvcrt
But that''s not the runtime I want. But I don''t want to hard code the
runtime name either. I realize I could parse it out of RbConfig, but I
w...
2017 Apr 24
1
[FFI] [OrcJIT] Status update on C FFI for OrcJIT?
I looked around for the status of OrcJIT FFI support. The last e-mail
thread I could find was this one: Link
<http://lists.llvm.org/pipermail/llvm-dev/2015-February/081679.html>
Raw: http://lists.llvm.org/pipermail/llvm-dev/2015-February/081679.html
Is OrcJIT now considered stable enough that there can be "official" exposed
C...
2009 Aug 07
7
Comments for Daniel Berger blog post
...on this article you wrote:
http://djberg96.livejournal.com/168403.html
But since you disabled OpenID and anonyous, I''m not fond to register
for another account just to reply your comments.
Quoting your post:
""
Unfortunately, I''ve slammed into the cold hard fact that FFI just
isn''t the grand solution we all hoped it would be. The first problem
is that libffi, the underlying source for C based implementations,
isn''t going to build without the gcc toolchain. That pretty much
leaves everyone but Linux, FreeBSD and OS X in the dust, including two
heav...
2012 May 18
7
Dir.create_junction with FFI
Hi,
Try as I might, I just cannot get Dir.create_junction to work with FFI
in the ffi branch of the win32-dir project. The problem is the
REPARSE_JDATA_BUFFER struct. I''m just not sure how to set those
members, specifically, the PathBuffer member. The target looks good,
it''s UTF-16LE encoded, but I can''t make it work, despite trying
several ways...
2019 Jun 27
0
Re: [PATCH 08/11] Rust bindings: Fix memory management and format the file
...sertions(+), 150 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index 79e16dfc6..ee65b1073 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -61,14 +61,16 @@ let generate_rust () =
pr "
use std::collections;
use std::convert;
+use std::convert::TryFrom;
use std::ffi;
-use std::slice;
+use std::os::raw::{c_char, c_int, c_void};
use std::ptr;
-use std::os::raw::{c_char, c_int};
+use std::slice;
+use std::str;
#[allow(non_camel_case_types)]
-enum guestfs_h {} // opaque struct
+enum guestfs_h {} // opaque struct
#[link(name = \"guestfs\")]
extern...
2010 Dec 14
2
[LLVMdev] OS X ffi in config.h
While browsing the configure generated llvm/Config/config.h, I'm noticed that
the macros:
HAVE_FFI_CALL
HAVE_FFI_FFI_H
HAVE_FFI_H
are not defined on OS X (currently 10.6.5).
Given that ffi exists on this platform (both headers and lib), is this result intended?
Thanks
Garrison
2008 Feb 02
1
Ruby++ FFI (theoretical)
Hi all,
How does this look as a potential FFI for our theoretical Ruby++ ?
I''m not sure how to do mixins, though. Some sort of special directive?
Or just add it to inheritance chain?
Anyway, this is just a rough prototype. No attempt at an actual
implementation yet.
Regards,
Dan
// foo.h - Function prototypes
#define _FOO_H_
us...
2019 Jun 27
4
Re: [PATCH 9/9] Rust bindings: Complete bindings
Patch 9 is a kind of dumping ground of all kinds of stuff. It may be
better to spend some time with git rebase -i trying to work this into
more coherent patches.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live
2009 Oct 28
2
[LLVMdev] JIT, FFI
Hello, I'm new to LLVM and I had a question about it: when we call the
JIT::runFunction, since llvm doesn't has a full FFI, there are some cases in
which the JIT needs to codegen a stub function to call the function we are
interested, my question is: this stub function will remains in the module
until when ? What are the most efficient way to remove it from the module
and memory ? For a little quantity of calls this do...
2008 Jun 30
2
[LLVMdev] Recently failing vector tests
...======================================================
> --- CodeGen/PrologEpilogInserter.cpp (revision 52829)
> +++ CodeGen/PrologEpilogInserter.cpp (working copy)
> @@ -464,7 +464,8 @@
> // works.
> if (!RegInfo->targetHandlesStackFrameRounding() &&
> (FFI->hasCalls() || FFI->hasVarSizedObjects() ||
> - RegInfo->needsStackRealignment(Fn))) {
> + (RegInfo->needsStackRealignment(Fn) &&
> + Offset > std::abs(TFI.getOffsetOfLocalArea())))) {
> // If we have reserved argument space for call sites...
2011 Aug 18
1
Multiple Errors with RRD and Rake
...te environment
rake aborted!
Could not open library ''rrd'': rrd: cannot open shared object file: No
such file or directory. Could not open library ''librrd.so'': librrd.so:
cannot open shared object file: No such file or directory
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:75:in
`block in ffi_lib''
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:54:in
`map''
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:54:in
`ffi_lib''
/usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd/wrappe...
2009 Oct 28
0
[LLVMdev] JIT, FFI
...t;> Reid
>>
>> On Wed, Oct 28, 2009 at 10:41 AM, Christian S. Perone
>> <christian.perone.listas at gmail.com> wrote:
>> > Hello, I'm new to LLVM and I had a question about it: when we call the
>> > JIT::runFunction, since llvm doesn't has a full FFI, there are some
>> > cases in
>> > which the JIT needs to codegen a stub function to call the function we
>> > are
>> > interested, my question is: this stub function will remains in the
>> > module
>> > until when ? What are the most efficient...
2010 Dec 14
0
[LLVMdev] OS X ffi in config.h
Ah, --enable-libffi.
Any pointers as why this is not a default check for at least
UNIX systems? Does Windows have the equivalent?
Thanks in advance
Garrison
On Dec 14, 2010, at 6:34, Garrison Venn wrote:
> While browsing the configure generated llvm/Config/config.h, I'm noticed that
> the macros:
>...
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
...---
1 file changed, 259 insertions(+), 24 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index aa8b249ff..79e16dfc6 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -60,10 +60,11 @@ let generate_rust () =
pr "
use std::collections;
+use std::convert;
use std::ffi;
use std::slice;
use std::ptr;
-use std::os::raw::c_char;
+use std::os::raw::{c_char, c_int};
#[allow(non_camel_case_types)]
@@ -74,6 +75,8 @@ extern \"C\" {
fn guestfs_create() -> *mut guestfs_h;
fn guestfs_create_flags(flags: i64) -> *mut guestfs_h;
fn guestf...
2008 Jun 30
0
[LLVMdev] Recently failing vector tests
...n't make any difference.
>
> Thanks for thinking about this,
>
> Duncan.
OK, the test is not quite right then. This doesn't happen on Darwin
so I'm
afraid you'll have to debug it. Perhaps testing for
(RegInfo->needsStackRealignment(Fn) &&
FFI->getObjectIndexEnd()!=0)
?
> On Friday 27 June 2008 19:51:00 Dale Johannesen wrote:
>> On Jun 27, 2008, at 3:11 AMPDT, Duncan Sands wrote:
>>> FAIL: test/CodeGen/X86/vec_shuffle-10.ll
>>> Failed with exit(1) at line 3
>>> while running: llvm-as < test/Code...
2008 Jun 30
1
[LLVMdev] Recently failing vector tests
Hi Dale,
> OK, the test is not quite right then. This doesn't happen on Darwin
> so I'm
> afraid you'll have to debug it. Perhaps testing for
> (RegInfo->needsStackRealignment(Fn) &&
> FFI->getObjectIndexEnd()!=0)
> ?
yes, that works - thanks! Since I have no idea what this is
doing, is it ok if I leave it to you to commit it?
Thanks again,
Duncan.
> > On Friday 27 June 2008 19:51:00 Dale Johannesen wrote:
> >> On Jun 27, 2008, at 3:11 AMPDT, Duncan Sands wr...
2019 Jun 27
0
[PATCH 9/9] Rust bindings: Complete bindings
...of files generated -- last. *)
diff --git a/generator/rust.ml b/generator/rust.ml
index 4766357be..ee65b1073 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -61,14 +61,16 @@ let generate_rust () =
pr "
use std::collections;
use std::convert;
+use std::convert::TryFrom;
use std::ffi;
-use std::slice;
-use std::ptr;
use std::os::raw::{c_char, c_int, c_void};
+use std::ptr;
+use std::slice;
+use std::str;
#[allow(non_camel_case_types)]
-enum guestfs_h {} // opaque struct
+enum guestfs_h {} // opaque struct
#[link(name = \"guestfs\")]
extern \"C\" {...
2024 Jun 18
1
[PATCH v2 3/8] rust: drm: add driver abstractions
...ings::drm_gem_object,
+ >,
+ pub(crate) prime_handle_to_fd: Option<
+ unsafe extern "C" fn(
+ dev: *mut bindings::drm_device,
+ file_priv: *mut bindings::drm_file,
+ handle: u32,
+ flags: u32,
+ prime_fd: *mut core::ffi::c_int,
+ ) -> core::ffi::c_int,
+ >,
+ pub(crate) prime_fd_to_handle: Option<
+ unsafe extern "C" fn(
+ dev: *mut bindings::drm_device,
+ file_priv: *mut bindings::drm_file,
+ prime_fd: core::ffi::c_int,
+ handle: *...
2004 Apr 22
0
Ffi The doctor¡¯s in
clarisworks ogara chshz npt-d acked
Take charge of your medical conditions now. Order online. Live a healthier
and happier life - all from the comfort of your home! Quality Meds we offer:
V`ic0-din ES 90 Tab Special.
Fedex delivery.
http://hclgyt.net.azsw3d.com/?p=8089
Your comfort and convenience is our prime concern.
N.o thanks: http://uhbq.j.foresmdb.com/a.html
A professor was
2008 Jul 24
2
[LLVMdev] customized output of double load/store on ppc32
...; your interpreter map memory backwards on opposite-endian platforms?
Hi
The front-end is not C code, and doesn't do bit-level operations (if
that's what you mean). My first attempt was indeed to just leave
memory in big endian and swap during loads/stores. But, I'd like to
support an FFI to native code (which of course doesn't have any
knowledge of having to swap memory), so that isn't too practical.
thanks,
scott