[LLVMdev] multithreaded applications

Luke Dalessandro luked at cs.rochester.edu
Tue Feb 3 12:47:40 PST 2009


aparna kotha wrote:
> Hi all:
> 
> I am working on a project using llvm and we need to deal with 
> multithreaded applications. I wanted to know if there was a C front end 
> for llvm that could parse multithreaded applications? I tried llvm-gcc 
> (4.2) and could not get it to work. Is there an extra parameter that I 
> need to pass or something ?

Just the standard flags should work. We define -D_REENTRANT during 
compilation and -lpthread during linking. We also have no problem with 
OpenMP (-fopenmp -lgomp) if that's what you are using. You'll need to 
adjust this for whatever threading package you use.

Luke

> 
> 
> 
> Thanks a lot for your help.
> 
> 
> 
> Regards
> 
> -- 
> -- Aparna
> 
> Graduate Student
> Department of Electrical and Computer Engineering
> University of Maryland, College Park
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list