rpav/c2ffi
View on GitHub ↗ ★ 285 C++
Clang-based FFI wrapper generator
7 mentions on Hacker News by 4 people: 0 stories, 7 comments · first 2017-09-06 · latest 2024-05-08
20082026
-
Some Common Lisp FFIs have opted to coax this information out of the compiler. https://github.com/rpav/c2ffi is a C++ tool that links to libclang-cpp and literally outputs JSON with sizes and alignments. (It is then used by…
comment by orivej · 2024-05-08 · in Pair Your Compilers at the ABI Café -
…itself is transmitted. For an example of why language/format matters, consider the tool c2ffi ( https://github.com/rpav/c2ffi ). It generates a JSON description of a C header file. The header file itself is a pain to parse and extract…
comment by nerdponx · 2023-08-12 · in tRPC – Build and consume typesafe APIs without schemas or code generation -
…outputs DWARF or DWARF-like debug output that actually lays out everything That sounds like C2FFI: https://github.com/rpav/c2ffi The only language ecosystem where I've seen it used is Common Lisp, in the CL-Autowrap library (…
comment by nerdponx · 2022-11-07 · in C isn't a programming language anymore -
…in any programming language and does not require access to the source code. I mentioned C2FFI ( https://github.com/rpav/c2ffi ) in another post in this thread. That's an extra "spec.json" file that you need to distribute along with your…
comment by nerdponx · 2022-11-07 · in C isn't a programming language anymore -
…C is a pretty nasty language to parse, so you end up using something like http://www.swig.org/ or https://github.com/rpav/c2ffi to parse it for you. But the challenge with adopting those sort of tools for Java is they aren't written in…
comment by skissane · 2018-01-07 · in How the JVM compares strings on x86 using pcmpestri -
…languages call directly into C++, yes that's quite a pain (nearly impossible without something like https://github.com/rpav/c2ffi ). Note also that calling into non-C ABI functions in any language is hard (and most HLLs don't support…
comment by aidenn0 · 2017-09-06 · in Comparing C and C++ usage and performance with a real world project