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 

Linking Intel Visual Fortran Object Files/DLLs in FTN95

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
saturn



Joined: 22 Apr 2008
Posts: 12

PostPosted: Tue Apr 29, 2008 10:01 pm    Post subject: Linking Intel Visual Fortran Object Files/DLLs in FTN95 Reply with quote

Has anyone got some experience in linking Intel Visual Fortran (IVF)
object files/ DLLs with SALFORD FTN95?

We have a transport model developed over the years using SALFORD
FORTRAN and recently decided to parallelise it to take advantage of
multi-core PC systems. The problem is that SALFORD does not support
OpenMP like IVF. Furthermore, we do not want to port the SALFORD source to IVF.
There are backward compatibility issues with user models that are
dependent on unformatted binary files and differences in Windows
programming.

The only option we’ve got is linking IVF object/DLL files in SALFORD,
which is proving to be a bit awkward. Does any have expertise in this area?


Last edited by saturn on Wed Nov 26, 2008 5:47 pm; edited 2 times in total
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Apr 29, 2008 10:17 pm    Post subject: Reply with quote

If the third party DLL uses the STDCALL protocol then you should try using /IMPORT_LIB <DLL name> on the FTN95 command line.

When using a Plato project, this can be done by selecting STDCALL in the Reference Properties Dialog when adding a Reference in the Project Explorer window.

Problems can occur when passing character strings because these require hidden arguments for the lengths of the strings and different compilers handle the hidden arguments in different ways.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
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