[fpc-devel] LLVM backend Pascal bindings?
jonas at freepascal.org
Sun Nov 14 10:58:50 CET 2021
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.
More information about the fpc-devel