On 23.05.12 11:25, Jon Elson wrote:
> The only solution is to make the common blocks an include file.  If
> the compiler doesn't support that,

Please read the second half of my post from yesterday, in reply to
yours, first raising include. It provides links and some information on
gfortran, including a brief mention of its include directive.

> write a script that inserts the include file at the right point.  Edit
> the files in the raw form, the script inserts the commons, and then
> the compiler processes the processed files.

That's not necessary. Gfortran supports include. There's brief mention
of the directive in gcc/doc/gfortran.1 in the gcc source code.

Lets' also have a look in the manual:
http://gcc.gnu.org/onlinedocs/gfortran/index.html#Top

The keyword index only seems to lead to a page describing how to control
the directory search path used with the INCLUDE directive, but that's
confirmation that it's there, even if obscurely documented.

> > f2c has trouble with some of the evil constructs that APT uses
> >   
> Hopefully no computed goto's and 1960-vintage syntax of that sort.
> Also, the Hollerith-encoded char strings are machine dependent.

A lot of problems disappear if a fortran compiler is used, I figure.
It'll be interesting to hear what happens when you stuff APT through
gfortran. As mentioned in my prior post, the ancient code may have to
have some of the dust of ages brushed off it, to be accepted by a modern
compiler.

Erik

-- 
History doesn't always repeat itself. Sometimes it just screams,              
'Why don't you listen to me?' and lets fly with a big stick.                  
                                            -John W. Campbell Jr.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to