finit-local-zero and default initialization
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Jun 6 00:27:00 GMT 2007
On Tue, Jun 05, 2007 at 04:50:43PM -0700, Asher Langton wrote:
> I'm planning to add support for -finit-local-zero (PR20441), as well
> as for arbitrary default initializations specified at compile-time.
> One request from within LLNL has been for a way to control the default
> initialization values at runtime, via some simple library routines
> (set_default_integer, get_default_integer, etc.). This would be very
> useful for debugging large codes without recompiling an entire
> project. Any comments, suggestions, or objections?
>
I think the compile time options would be quite useful.
Can you describe the runtime method? Would
program test
integer i
print *, i
end progrma test
compile to (pseudocode of course)
if (getenv(RUNTIME_INITIALIZE))
i = set_default_integer()
print i
end
--
Steve
More information about the Fortran
mailing list