Has anyone begun collating data structures and algorithms written in LLVM's IL? I am just considering how to implement my first GC and it would help enormously if I could just pull in a concurrent queue written in IL, for example. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e
On Tue, Dec 30, 2008 at 11:05 AM, Jon Harrop <jon at ffconsultancy.com> wrote:> > Has anyone begun collating data structures and algorithms written in LLVM's > IL? I am just considering how to implement my first GC and it would help > enormously if I could just pull in a concurrent queue written in IL, for > example.Unless I'm misunderstanding the question, why not just take a version written in C and compile it with llvm-gcc? -Eli
On Tuesday 30 December 2008 21:13:51 Eli Friedman wrote:> On Tue, Dec 30, 2008 at 11:05 AM, Jon Harrop <jon at ffconsultancy.com> wrote: > > Has anyone begun collating data structures and algorithms written in > > LLVM's IL? I am just considering how to implement my first GC and it > > would help enormously if I could just pull in a concurrent queue written > > in IL, for example. > > Unless I'm misunderstanding the question, why not just take a version > written in C and compile it with llvm-gcc?I was under the impression that LLVM's memory model was preferable for that task, e.g. fences vs volatile. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e