Am 07.03.18 um 19:35 schrieb Lynn McGuire:
> "Clang is now used to build Chrome for Windows"
>
http://blog.llvm.org/2018/03/clang-is-now-used-to-build-chrome-for.html
>
> "Clang is the first-ever open-source C++ compiler that’s ABI-compatible
> with Microsoft Visual C++ (MSVC) – meaning you can build some parts of
> your program (for example, system libraries) with the MSVC compiler
> (“cl.exe”), other parts with Clang, and when linked together (either by
> MSVC’s linker, “link.exe”, or LLD, the LLVM project’s linker – see
> below) the parts will form a working program."
>
> Hey, neat ! I need to check Clang on their Fortran 77 compiler status.
> I want to slowly transition our F77 code to C++ in Visual Studio and
> this might fit the bill.
I don't think you need clang for that, gcc (gfortran or g77) should do
it. For a C <-> Fortran bridge you only need compatibility for C ABI
functions, and there gcc is compatible with VC++ for long time. Only in
case of C++, i.e. name mangling, exceptions etc., you would need clang.
Another option for pure F77 code is f2c which translates F77 into C, and
then you can trivially compile and link it with C++ code. Apart from
strange calling conventions (every parameter, even an integer, is passed
by pointer) this works fairly well. I'm using this in a project to call
out to LAPACK functions.
Christian