[cfe-dev] Clang & Objective-C questions

Camille Troillard camille at osculator.net
Tue Jun 2 03:52:58 PDT 2009


Hello,
I am learning LLVM and would like to add JIT support to the F-Script
language.  F-Script is a Smalltalk like scripting language that lives above
the Objective-C runtime.  In F-Script everything is represented as an
Objective-C object.

Right now, when a block is parsed, a AST representation is built and then
interpreted.  This results in selectors calls (by large), but also classes
and methods definitions.

My question are:

1. Do you think it would make sense to use the clang codebase (specifically
Objective-C CodeGen / CGObjCRuntime) in order to generate the code that will
replace F-Script's interpretation?

(I have asked llvmdev if it was possible to use the objc code generation
module in clang to emit the code, and they sent me to cfe-dev.)

2. If the previous answer is yes, can you point me to some code
where CGObjCRuntime is used?  Or advices on how to use it?

3. If this is not a good idea, do you have a suggestion for an alternative
approach?


Thanks!


Best Regards,
Camille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090602/917a4e20/attachment.html>


More information about the cfe-dev mailing list