u/Extension-Ad8670

▲ 0 r/csharp

Any tips for using custom LLVM bindings for C#? (The C headers)

Hi! so I know this is niche, but I’ve been struggling to use C#’s C interoperability to play nice with LLVM.

I have been considering options such as LLVMSharp which seem promising, but I want to create my own bindings for just the functions I need, and I want to have more control. It’s also just a thin wrapper layer, so I’m not sure how much help it would be.

Any invalid pointer, use-after-free, buffer overrun, or stack corruption in native code ends in SIGSEGV.

So, I was wondering if anyone had any tips for this, because it’s making me crash out a little bit, thanks :)

reddit.com
u/Extension-Ad8670 — 12 hours ago