Q: Can Fortran and C memory allocation coexist?
From: Marcel Beekveld (marcel.beekveld_at_imtech.nl)
Date: 11/24/03
- Next message: Jeremy: "IFC Floating Point Behavior"
- Previous message: Jugoslav Dujic: "Re: Question about -SIGN(A,B)"
- Next in thread: E. Robert Tisdale: "Re: Q: Can Fortran and C memory allocation coexist?"
- Reply: E. Robert Tisdale: "Re: Q: Can Fortran and C memory allocation coexist?"
- Reply: Robert Corbett: "Re: Q: Can Fortran and C memory allocation coexist?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Nov 2003 02:30:28 -0800
Hi,
The problem I have concerns mixing C and Fortan code in which memory
is allocated both by the Fortran as well as the C code. Memory that is
allocated in Fortran is also deallocated in Fortran. The same is true
for the C code. Nevertheless I have a hunch that the Fortran and C
memory allocators clash because the compiled Fortran and C code are
part of the same process, and therefore share the same heap. Do the
Fortran and C memory allocators clash or should I look for another
reason?
And if they do clash, what would be a viable solution? I am stuck with
the task of writing a Fortran wrapper for a C library. The C library
does some memory allocation as well as the Fortran code that will be
using the library. Does it mean inter-process communication so that
the processes no longer share the same heap? I am using HP f90 and HP
C compilers on HP-UX.
Thanx,
Marcel.
- Next message: Jeremy: "IFC Floating Point Behavior"
- Previous message: Jugoslav Dujic: "Re: Question about -SIGN(A,B)"
- Next in thread: E. Robert Tisdale: "Re: Q: Can Fortran and C memory allocation coexist?"
- Reply: E. Robert Tisdale: "Re: Q: Can Fortran and C memory allocation coexist?"
- Reply: Robert Corbett: "Re: Q: Can Fortran and C memory allocation coexist?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|