Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Photran 5.0 & Intel Visual Fortran 11

Hi,

Ralph Johnson wrote:
>> How did you get Intel Fortran working with Photran on the Mac? Or is that
>> supported by default by Photran?
> 
> It is supported by default.  Some Intel people developed the Photran
> tool-chain for the Intel compiler, but they only did it for
> Unix-clones and not Windows.  I thought the problem was mostly
> political; they had agreed with Microsoft to support VS on Windows,
> but maybe the reason is technical.  Photran works with the Intel
> compiler, just not on Windows.
> 
> If the problem is purely political then someone else could build the
> tool-chain support fairly easily.  If the problem is technical then it
> might be harder.

I wonder if this information is current/useful:

http://www.rhinocerus.net/forum/lang-fortran/93191-problem-using-nmake-ifort.html

Paraphrasing the Makefile listed:

####
FSOURCES=\
hello_world.f

CC = icl
CFLAGS = /MT /c -DFTNSYM_NO_UNDERSCORE /O2
FC = ifort
F90 = ifort
FFLAGS=/c /O2 /convert:big_endian /names:lowercase
LFLAGS= /dll
LIBS=/NODEFAULTLIB:uuid.lib /NODEFAULTLIB:libc.lib
/NODEFAULTLIB:ImageHlp.lib libadf-intel_11.lib libcfd-intel_11.lib
"C:\Program Files\Intel\Compiler\Fortran\11\IA32\Lib\libifcor emd.lib"
OBJECTS= $(CSOURCES:.c=.obj) $(FSOURCES:.f=.obj)

hello_world.obj:
	$(FC) $(FFLAGS) hello_world.f

PROGRAM= hello_world.exe
$(PROGRAM): $(OBJECTS)
	link $(OBJECTS) $(LFLAGS) $(LIBS) /OUT:$(PROGRAM)

####

I'm no Makefile expert and I have absolutely not tested this and I'm
dead certain there are bugs in it. However, someone with an Intel 11
Fortran compiler on Windows might be able to make some headway on a toy
problem and then generalize it later (I'm at home right now otherwise
I'd poke at it.) I may be able to convert mkmf.pl to handle Windows
paths and expectations to provide proof-of-concept code for untangling
compilation order and dependencies from Fortran source. Once the logic
of mkmf.pl and Makefile is clear, the Makefile could be converted to a
template and mkmf.pl translated to Java.

So provided we can get IFORT building from a command line, we can get it
building from within a Makefile, and the dev process should be
straightforward, if not simple.

I feel some responsibility to help tie the bell on this particular cat. :)

-- Bob


Back to the top