View previous topic :: View next topic |
Author |
Message |
DietmarSiepmann
Joined: 03 Jun 2013 Posts: 279
|
Posted: Tue Feb 12, 2019 5:15 pm Post subject: use_virtual_scratch_files@ available for ftn95? |
|
|
Hello,
in Salford's ftn77 environment there was a call to enable or disable the virtual scratch file facility, namely
Code: |
use_virtual_scratch_files@
|
. If the virtual scratch file facility was enabled, files opened with STATUS='SCRATCH' were never written to disk but held in virtual memory.
Now, I could not find use_virtual_scratch_files@ in Salford's ftn95 compile environment.
Hence I would like to know, if the virtual scratch file facility is available under ftn95, and if so, by which call I would enable or disable it.
Thanks,
Dietmar |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8208 Location: Salford, UK
|
Posted: Sun Feb 17, 2019 6:30 pm Post subject: |
|
|
I can't find any reference to scratch files that are "virtual".
There are routines for mapping files to memory such as MAP_FILE_FOR_READ_WRITE@ but I have not looked up the details. |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Mon Feb 18, 2019 12:11 pm Post subject: |
|
|
Paul,
It's in the FTN77 library manual, available on this website. If it never migrated from FTN77 to FTN95, and given that it seems so sensible, isn't there a case for resurrecting it?
Eddie |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Wed Feb 20, 2019 3:23 am Post subject: |
|
|
As most disk I/O is now buffered, why worry about virtual files; disk files would probably give similar performance. |
|
Back to top |
|
 |
|