Call C from Clojure using GraalVM - then compile a binary using native-image

栏目: IT技术 · 发布时间: 5年前

内容简介:I've only tested on mac.ModifyThanks sogaiu for helping me get this working. :)

clojure calling c -- compiled to a binary with native-image

Prerequisites

I've only tested on mac.

Steps

Modify src/Headers.java , specifically: /Users/test/programmering/clojure/graal-native-interaction/graal/src/triple.h needs to point to your src/triple.h .

$ make clean CFiles && ./compile && ./woop
1 # this value comes from a c-struct!

Acknowledgements

Thanks sogaiu for helping me get this working. :)


以上所述就是小编给大家介绍的《Call C from Clojure using GraalVM - then compile a binary using native-image》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

精通正则表达式

精通正则表达式

弗里德尔 / 东南大学出版社 / 2005-9 / 72.00元

正则表达式是一种用来操作文本和数据的强大工具。近年来,它们快速广泛传播,并被多种流行工具和语言作为标准特性提供,如Perl、Java、VB.NET、C#(及任何使用.NET框架的语言)、PHP、Python、Ruby、Tcl、MySQL、awk、Emacs等。 如果还未使用过正则表达式,从本书中您将发现一个掌控数据的全新世界。如果使用过它们,您将会充分意识到本书空前的深度和广度。如果您认为自己已经......一起来看看 《精通正则表达式》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具