[fpc-devel] LLVM Backend?

Samuel Crow samuraileumas at yahoo.com
Wed Nov 11 23:41:03 CET 2009

----- Original Message ----

> From: Jonas Maebe <jonas.maebe at elis.ugent.be>
> To: FPC developers' list <fpc-devel at lists.freepascal.org>
> Sent: Wed, November 11, 2009 3:41:22 PM
> Subject: Re: [fpc-devel] LLVM Backend?
> Yes, it does, thanks. The main problem I see is that my approach would require a 
> lot of initial work from my part (creating the "high level code generator" that 
> could call through to LLVM libraries), so
> a) you'd be pretty much blocked until that work were finished if you'd go with 
> that approach
> b) I honestly have no idea how soon I could finish that (or even how soon I 
> could seriously get going in doing that)

Alright Jonas,

I can work on getting Borland Fastcalls implemented in the LLVM x86 backend.  By the time I'm done with that we can talk about what else needs doing.  Is there a test already in the FPC repository that I can use as a test to make sure that the calling convention is working?  I'll be working on a MacOSX 10.5 Intel computer if that makes a difference.

Also, as part of the Mattathias BASIC project, our team leader has almost completed the LLVM-PEG utility for implementing parsing expression grammars in LLVM Assembly.  If I end up continuing the work I started on a new LLVM-FPC parser I'll be using that as my tool of choice and implementing the code sections with support routines from LLVM and Clang.  (I won't have the liberty of using Clang's libraries in the BASIC compiler since BASIC requires a two-pass compilation process.)

I hope your workload permits you to work on the function calling mechenism soon.  Thanks for your advice.

--Sam Crow


More information about the fpc-devel mailing list