🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.transputer
1 messages
1 total messages Started by John Roberts Tue, 08 May 1990 02:53
Fortran
#569
Author: John Roberts
Date: Tue, 08 May 1990 02:53
29 lines
1895 bytes
I'm a software engineer at Cogent Research.  We build a transputer-based
workstation and compute server.  We got our Fortran compiler from
Penguin/Pentasoft/Unidot.  It is now being distributed by Unidot
in Golden, Colorado.

It was a shaky Fortran-77 at best, but with some hacking it passed the
Fortran-77 validation suite.  We totally had to replace the math functions
to pass things like the Elementary Functions test (EleFun).  In general,
though we are able to compile most Fortran codes to run on the transputer.

As far as integrating it with Logical Systems C....  that sounds
rather dubious at best.  I can think of a couple of ways.  First you
would want to use the option in LSC (the latest release) that causes
the code generator to generate relocatable code via passing a static link
(global data pointer) as an argument.  Our Fortran is set up that way
(since we have to have programs load in any arbitrary memory area, they
must be relocatable).  If you have Fortran set up so it isn't producing
relocatable code, then that option should be disabled in LSC.

The traditional way to do it is to have either C call a Fortran library
routine or visa versa.  Fortran always passes an "invisible" pointer as
the first argument that points to where to store the return value from
a function, so beware of calling conventions, but there's nothing
that should prevent you from mixing code.  It has been done where I work.

John Roberts
Cogent Research, Inc.
robertsj@admin.ogi.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads