soccer jersey forums.silverfrost.com :: View topic - Using ACML with the Salford FTN95 compiler
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 

Using ACML with the Salford FTN95 compiler

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> KBase
View previous topic :: View next topic  
Author Message
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 191
Location: Manchester

PostPosted: Sat Jun 25, 2005 3:45 am    Post subject: Using ACML with the Salford FTN95 compiler Reply with quote

Information privided by Michael Newark

Compilation
No source file changes are necessary to call the ACML DLL from Ftn95. However, since Ftn95 uses a variant of the cdecl calling convention, the compiler has to be told that the routines in the DLLs are to be called using the CVF calling convention. This can be accomplished using the /IMPORT_LIB command line switch as follows:

ftn95 myprog /import_lib install_dirlibacml_dll.dll

where install_dir is the location of the DLL. The full pathname of install_dir should be specified to the DLL and should be enclosed within quotes if it contains spaces. The effect of this is to assume that all exported names in the DLL are CVF STDCALL and that any use of them should use the CVF STDCALL calling convention. External names passed via the argument list to a routine in the ACML DLL are automatically adjusted for whether or not they occur in the same source.

Linking
The ACML DLL library may be added to the Salford Slink command line as usual e.g

Slink myprog.obj install_dirlibacml_dll.dll

As with compilation, the full path to the DLL should be specified here, within quotes if the pathname contains spaces. It is worth emphasising that the linker should link directly against the DLLs not the *.lib files.


------------
Administrator
Silverfrost Forums
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> KBase 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