[swift-dev] Proof-of-concept port of Swift for Android

Slava Pestov spestov at apple.com
Fri Dec 11 09:28:41 CST 2015

> On Dec 11, 2015, at 4:33 AM, Geordie Jay via swift-dev <swift-dev at swift.org> wrote:
> Hi, maybe one of the Apple devs can help out with this quick Q:
> To interface with the JNI, we’d presumably need to call swift functions from our compiled swift binaries from C (or directly from Java, the result being the same). Is there a way to demangle certain symbols in the output binary to this effect, or is there another / a better way to access Swift functions from C?

Joe Groff has a proof-of-concept implementation of a @cdecl attribute for exporting functions to C in the cdecl-attribute branch on GitHub.


> Thanks
> ----
> For anyone else following along, there is some discussion here:
> https://www.reddit.com/r/swift/comments/3w0xrd/im_patching_the_opensource_swift_compiler_to/ <https://www.reddit.com/r/swift/comments/3w0xrd/im_patching_the_opensource_swift_compiler_to/>
> .. which I guess we’d probably be better off keeping on this mailing list instead.
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151211/74be4cb4/attachment.html>

More information about the swift-dev mailing list