Home > Archive > Fortran > October 2006 > completely static runtime environment
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
completely static runtime environment
|
|
| raghavan.viswanathan@wipro.com 2006-10-30, 7:16 pm |
| Hi All,
The compiler books talk of FORTRAN77 compilers using a completely
static environment in which activation records, global variables etc
are all allocated from static memory.
I wanted to get a hang of the runtime environment by looking at the
generated assembly code. I tried using g77 compiler and took a look at
the generated .s file for a given source file. It figured that it uses
a stack based runtime environment.
Is there a FORTRAN77 compiler on x86 which generates a completely
static runtime environment ?
I am also wondering, if there is any option in g77 to use static
runtime environment ?
Thanks.
Bye,
Raghavan V
| |
| glen herrmannsfeldt 2006-10-30, 7:16 pm |
| raghavan.viswanathan@wipro.com wrote:
> The compiler books talk of FORTRAN77 compilers using a completely
> static environment in which activation records, global variables etc
> are all allocated from static memory.
It was common for Fortran 66 compilers to use static data
areas. On machines with a call stack many used the stack for
calling subprograms, such that it wasn't completely static.
OS/360 Fortran compilers used static memory for data,
argument lists, and for storing the return address.
Most DEC Fortran 66 compilers, such as RT-11 and TOPS-10
(I am not sure about the VAX/VMS compilers) used static data
but used the stack for subprogram arguments and return addresses.
I would look at the older Microsoft Fortran compilers,
from the early DOS days.
Otherwise, if you put a SAVE statement in, all local
variables should be static.
-- glen
|
|
|
|
|