[LLVMdev] Writing LLVM front-end

Ahmed Taj elsir meedo456123 at gmail.com
Fri Feb 20 06:01:09 PST 2015


Thank you all,

David Jones

>>> You would then implement your own garbage collector in your runtime. If you don't >>> want to do that, then consider using the Boehm-Demers-Weiser conservative
>>> collector. It requires no special support from LLVM.

I was thinking to implement smart pointer instead of using GC , I mean
like this:
>>> obj b = new obj();
b will automatically be instantiate as smart pointer (which will be
deleted automatic also).
I don't know if it's bad idea or not , but that what I thought .

Another solution is to implement GC using LLVM GC (described here
http://llvm.org/docs/GarbageCollection.html) , but I don't know its
performance .

Can you advice me to the best solution , between the first and the
second solution ? does LLVM GC better than python's GC and other
equivalents ?

Thanks.



More information about the llvm-dev mailing list