Home > Archive > Fortran > July 2007 > Can Fortran compiler detect memory leaks??
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 |
Can Fortran compiler detect memory leaks??
|
|
| li.simula@gmail.com 2007-07-13, 10:06 pm |
| How to do it? (e.g. with IVF compiler or others)
| |
| merl the perl 2007-07-14, 4:15 am |
|
<li.simula@gmail.com> wrote in message
news:1184380317.636344.318140@o11g2000prd.googlegroups.com...
> How to do it? (e.g. with IVF compiler or others)
>
Your message actually made me load win xp to find the appropriate chinese
font. Do others detect strange fonts here? I like it because the
characters are clearer. Always melancholy before throwing everything into
the bitbucket.
--
merl
| |
| Herman D. Knoble 2007-07-16, 8:07 am |
| The code generated by one compiler, G95. detects undeallocated memory
which may or may not be associated with memory leaks.
For example, given the Fortran program:
http://ftp.aset.psu.edu/pub/ger/fortran/test/LEAK1.f90
or
http://ftp.aset.psu.edu/pub/ger/fortran/test/LEAK2.f90
when compiled wi th g95 and run gives the error message:
Remaining memory: 20000000 bytes allocated at line 8 of leak1.f90
or
Remaining memory: 2000000 bytes allocated at line 9 of leak2.f90
Remaining memory: 2000000 bytes allocated at line 6 of leak2.f90
respectively.
I am not aware of other compilers' run-time code diagnosing undeallocated arrays.
See Table V at:
http://ftp.aset.psu.edu/pub/ger/for...est/results.txt
Skip Knoble
On Fri, 13 Jul 2007 19:31:57 -0700, li.simula@gmail.com wrote:
-|How to do it? (e.g. with IVF compiler or others)
|
|
|
|
|