¿ªÔÆÌåÓý

Re: Fortran I/O


 

¿ªÔÆÌåÓý

On 1/21/20 9:15 AM, Steven Fosdick wrote:
On Tue, 21 Jan 2020 at 08:41, Dave Wade <dave.g4ugm@...> wrote:

Rene,

Should the GCC libraries be removed? Doesn¡¯t the GCC EXEC set the proper TXTLIB depending on which ¡°C¡± library you are using?

Dave


So the sequence 'fortran', 'load' then 'start' is using dynamic linking then??

disclaimer: This was composed before breakfast -OR- caffeine.? :-)

You need the TXTLIB before the load for a FORTRAN program:

 ipl cms
VM/SP REL 5 05/07/18 15:45
LCML4361: Up 73 days, 17:24:52
 fortg hello
FORTRAN IV (G) COMPILATION COMPLETE.
 load hello
The following names are undefined:
 IBCOM#
Ready(00004); T=0.02/0.06 09:36:15
 start
Execution begins...
DMSITP141T Operation exception occurred at 000042 in routine USER PGM
CMS
And I take it Drew's various 'gen' execs are doing static linking?

I think all the languages do some static linking.? I'm sure FORTRAN does, and loads very little extra at run time (the game wrappers I wrote for the FORTRAN games don't bother to TXTLIB the library) .?

(It may load some error routines ... but I try not have errors. :-))

Note BTW that the GEN* EXECs print out exactly what they are doing.
 id
AHD      AT LCML4361 VIA MIRROR   01/21/20 09:24:20 PST      TUESDAY
 fortg hello
FORTRAN IV (G) COMPILATION COMPLETE.
 genfortg hello
GLOBAL TXTLIB FORTGH
LOAD HELLO  ( CLEAR
GENMOD HELLO
 filedef 6 term
 hello
Hello, world!

-ahd-

  

Join [email protected] to automatically receive all group messages.