Print Friendly and PDF

GCC-Compiled Mixed (C/Fortran) DLL

Jason -

This example model shows how to use an External Element to call a DLL to perform calculations outside of GoldSim. The DLL in this case was compiled using the gcc compiler suite from source code which is mainly written in Fortran. The Fortran portion of the source code is compiled using gfortran. The DLL contains three exposed functions, CustomFortranDLLSum (calculates the sum of two input arguments), CustomFortranDLLProdSum (calculates the sum and the product of two input arguments) and CustomFortranDLLHalf (divides an input argument by 2).

Experience Level:

Advanced

Download the Model File:

Tags:

  • DLL
  • FORTRAN
  • External
  • gcc
Have more questions? Submit a request

Comments