Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fortran vs C
#1
Hi everybody and thanks for reading!
My problem is the following.
I have a Python program that, starting from a state machine (specified in a graphical language), automatically translate it in C-code OR Fortran-code. I compared the two generated codes statically, by code inspection. Now, I would like to compare the equivalence of the two generated codes by comparing the output of their execution, state-by-state.
It means that I want to provide the same input to the C-application and to the Fortran-application and then compare the output at each state of the state machine, during its execution.
To this aim, I was wondering if it is possible to embed in some way the C-code in the Fortran-code or viceversa, so to have one application that contains both codes and when I provide an input I get the output of both of them at the same run.
Is this idea feasable?

Any comments and/or suggestions are welcome.
Thanks in advance!
Reply


Messages In This Thread
Fortran vs C - by mistert - Mar-06-2019, 09:04 AM
RE: Fortran vs C - by DeaD_EyE - Mar-06-2019, 01:30 PM
RE: Fortran vs C - by mistert - Mar-07-2019, 12:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to debug segfault in ctypes binding to Fortran bthomas 1 609 Sep-01-2023, 11:26 AM
Last Post: bthomas
  f2py: no Fortran compiler found FMJS 2 5,433 May-25-2020, 02:51 PM
Last Post: FMJS
  f2py recovering variables from Fortran module marius 0 3,465 Dec-02-2016, 03:52 PM
Last Post: marius

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020