Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Refactoring with modules

Hi Jeff,

since I don't have a technical background, please excuse and let me know if any of the following in imprecise.

To be very specific, I am using the LAPACK/ BLAS that come with the Intel Fortan Compiler / its MKL. So I have the source code, .mod, and .a files. The .mod I include in compilation, the .a in linking, all works fine, apart from the indexer, which of course can't locate the module. I thought that could be easily solved by adding the location of the source files (or even more specific, to the module source code containing only the F95 interfaces). I had the (maybe naive) impression that LAPACK /BLAS and other libraries in the public domain are still widely employed and usually wouldn't reside in the current workspace?

Thanks a lot in advance!

Daniel

On 05/13/2011 04:33 PM, Jeffrey Overbey wrote:
Hi Daniel,

about not finding a module. This is correct, as that module is provided by
the compiler and resides somewhere different on the file system. So I wanted
...
workspace, so I can't include the directory with this compiler-provided
module. Why is that so, and should it be changed?
A couple things come to mind.

First, Photran cannot read .mod files; it has to have source code for
the module to be able to analyze it. The format of a .mod file varies
from compiler to compiler.

As for why the analysis/refactoring components work exclusively with
files in your workspace, it's mostly implementation detail. Eclipse
treats files in your workspace differently than files elsewhere on the
file system. Photran has to be notified of changes to files, it has to
schedule background updates so that they avoid concurrent
modifications, etc... and all of this is trickier with files located
outside the workspace. We've avoided doing this so far because there
didn't seem to be much demand.

Back to the first point... for the module you're talking about, what
do you have available? A .mod file? A header (.h) file? Full source
code?

Jeff
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran


Back to the top