forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How program knows that it is 64bit or 32bit?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2105
Location: Sydney

PostPosted: Thu May 23, 2019 1:10 pm    Post subject: Reply with quote

mecej4,

I have been requesting for a few of these new system routines for a while, see:
http://forums.silverfrost.com/viewtopic.php?t=2176&postdays=0&postorder=asc&start=120

A few more requesting some of these utility routines may help identify those that are more useful.

Support for a FTN95 version of the module ISO_FORTRAN_ENV could also be helpful, which would provide some guidance for making code more portable.

The idea of more flexibility on KIND values could also help. More consensus on this idea could lead to a better approach.

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6003
Location: Salford, UK

PostPosted: Thu May 23, 2019 3:44 pm    Post subject: Reply with quote

It turns out that the version number is intended to be provided via _SAL_VER but this seems to have been forgotten and not updated from 450 which presumably refers to FTN95 v4.50.

We can add a new macro (say _FTN95_VER) and aim to keep it up to date.

I have made a note of the request for COMPILE_VERSION() etc.
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2105
Location: Sydney

PostPosted: Fri May 24, 2019 8:03 am    Post subject: Reply with quote

I have my own solution for compiler_version , which is:
Code:
   subroutine get_compiler_version ( version )
      character version*(*)
      character ftn95_ver*80
!
      include <ftn95_ver.ins>
      version = ftn95_ver
   end subroutine get_compiler_version


The include file in C:\Program Files (x86)\Silverfrost\ftn95\include looks like
Code:
      ftn95_ver = '[FTN95/x64 Ver. 8.40.0 Nov18 Copyright (c) Silverfrost Ltd 1993-2018]'


It would be good if a similar (or different) approach could be applied to salflibc.dll or where suitable.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6003
Location: Salford, UK

PostPosted: Fri May 24, 2019 8:43 am    Post subject: Reply with quote

For future releases of FTN95, _SAL_VER will be kept up to date and _FTN95_VER will be provided as an alternative.
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 179

PostPosted: Fri May 24, 2019 11:05 am    Post subject: Reply with quote

Thanks Paul, John and mecej4 for your information/discussion (@Paul ... and for providing the symbols Smile

John, did you create include file ftn95_ver.ins? I could not find it in my SALFORD installations.

Regards,
Dietmar
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2105
Location: Sydney

PostPosted: Fri May 24, 2019 11:14 am    Post subject: Reply with quote

Dietmar,

Yes, for each new version I create the file, by running ftn95 > zz, editing zz then copying into ...ftn95..\include\ftn95_ver.ins

With difficulty, as you need to copy as administrator. C:\Program Files (x86)\Silverfrost\ftn95\include is now too protected.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group