Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2021-11

LLVM backend Pascal bindings?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Ryan Joseph
Ryan Joseph 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

Reply by email

Ryan Joseph
to Jonas Maebe
On Nov 14, 2021, at 4:58 PM, Jonas Maebe via fpc-devel wrote: Afaik there's also a C binding (or at least there used to be one).

There is some c bindings but they seem incomplete, or at least I couldn't figure out how to follow the tutorial using what was provided there.

Show quoted text 5 lines
> 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.

That's what I thought but that's certainly beyond the scope of what I could do. :)

Regards,
Ryan Joseph

Reply by email