From: | jgd@cix.compulink.co.uk |
Newsgroups: | comp.compilers |
Date: | Tue, 21 Jul 2009 15:50:08 -0500 |
Organization: | Compilers Central |
References: | 09-07-074 |
Keywords: | code |
Posted-Date: | 24 Jul 2009 18:26:10 EDT |
In article 09-07-074, lerno@dragonascendant.com
(=?ISO-8859-1?Q?Christoffer_Lern=F6?=) wrote:
> I'd like to research FFI in various languages, basically to find the
> best FFI-solution and copy from that one.
> It's likely that I will restrict myself to interfacing with C, so if
> there are elegant solutions integrating with C, and more clunky but
> flexible that are more general, I probably prefer the ones that
> exclusively target C.
The native code invocation (Platform/Invoke, or P/Invoke) of C# are
pretty useful, and worth studying. But in this field quite a bit depends
on how the language you're calling from is implemented, as regards
callbacks, resource management, and so on. So a bit more idea about the
language you're creating would help people make suggestions.
--
John Dallman jgd@cix.co.uk
"Any sufficiently advanced technology is indistinguishable from a
well-rigged demo"
Return to the
comp.compilers page.
Search the
comp.compilers archives again.