archer icon indicating copy to clipboard operation
archer copied to clipboard

Fortran wrapper

Open jprotze opened this issue 7 years ago • 2 comments

The following commands create a binary, that is instrumented with TSan, has the Clang-TSan, LLVM-openmp and archer runtime library linked:

gfortran -fopenmp -sanitize=thread -c code.f
clang -fopenmp -sanitize=thread -lgfortran -larcher code.o

I'm not sure, how to modify the compiler wrapper, to split the compilation into this two steps.

jprotze avatar Mar 13 '17 12:03 jprotze

Have you also tried Frontran code that goes into a static library? -fPIC on the Fortran code might do but then, this may require libfortran.a to be built with -fPIC which isn't the case with default configuration.

dongahn avatar Mar 13 '17 14:03 dongahn

@jprotze Maybe we can just create a new wrapper for Fortran and call it flang-archer or something like that?

simoatze avatar Mar 13 '17 23:03 simoatze