Re: Layout in memory
From: David Sagan (dcs256_at_hotmail.com)
Date: 08/02/04
- Next message: Dr Ivan D. Reid: "Re: Lahey & Intel compilation size/speed issues"
- Previous message: Herman D. Knoble: "Re: Performance degradation from PGF90-Xeon to Compaq F90-Alpha"
- In reply to: Pierre Asselin: "Re: Layout in memory"
- Next in thread: Jan Vorbrüggen: "Re: Layout in memory"
- Reply: Jan Vorbrüggen: "Re: Layout in memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 2 Aug 2004 14:17:30 -0700
pa@see.signature.invalid (Pierre Asselin) wrote in message news:
> You can improve your odds a little by adding "sequence" statements, like this:
Very interesting. Thanks. But this brings up another question: Suppose
I
have a module like:
module this_mod
type this_struct
... define the structure without a sequence statement ...
end type
end moule
Now suppose I have a subroutine like:
subroutine sub1 (this_arg)
use this_mod
type (this_struct) this_arg
end subroutine
And I have a main program like
program main
use this_mod
type (this_struct) an_arg
call sub1 (an_arg)
end program
Suppose now I compile this_mod and sub1 with Compiler1 and put sub1
in a library which I ship off to a friend along with the source code.
Suppose then that my friend compiles this_mod and main with Compiler2.
Are you saying my friend cannot safely link them together since the
layout of the structure may not be the same? Even if my friend had the
compiled this_mod module he/she could not necessarily use it since (I
hear) that modules from one compiler may not be accepted by another.
-- David Sagan
- Next message: Dr Ivan D. Reid: "Re: Lahey & Intel compilation size/speed issues"
- Previous message: Herman D. Knoble: "Re: Performance degradation from PGF90-Xeon to Compaq F90-Alpha"
- In reply to: Pierre Asselin: "Re: Layout in memory"
- Next in thread: Jan Vorbrüggen: "Re: Layout in memory"
- Reply: Jan Vorbrüggen: "Re: Layout in memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|