On 2021-11-14 05:58, Ryan Joseph via fpc-devel wrote:
As a fun weekend project I wanted to follow along with the tutorial at https://llvm.org/docs/tutorial/index.html but I noticed the API in in C++ so it wouldn't be possible to do this in Pascal without at least some plain C API.
Afaik there's also a C binding (or at least there used to be one).
How did Free Pascal/Jonas accomplish this in the LLVM backend?
FPC generates LLVM IR which is then compiled using clang. It does not link to the LLVM libraries in any way.
Jonas _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel