Home > Archive > Fortran > June 2005 > Compilator Fortran
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 |
Compilator Fortran
|
|
| Ciobin 2005-06-02, 3:58 pm |
| I'd like to have a Fortran Compiler to do debug and to execute one code line
at time and to watch tha variable value.
Do you know free compiler?
TNX
| |
| Herman D. Knoble 2005-06-02, 3:58 pm |
| For the Windows Platform at least:
The Salford Windowed Debugger allows what you want - stepping one line
at a time, or setting breakpoints, and at each break point (or stop line)
one can display any variables, including matrices. Those variable values
that are undefined are flagged as value "????????". This is a very powerful
debugging tool.
Get the (free for non-commercial purposes) Personal edition of FTN95 at:
http://www.silverfrost.com/32/ftn95...nal_edition.asp
or at
http://www.polyhedron.co.uk/salford...5_personal.html
Others can comment on compiler/windowed debugger options under Linux.
Skip Knoble
On Thu, 02 Jun 2005 17:00:20 GMT, "Ciobin" <lingo74@forzaferrari-libero.it> wrote:
-|I'd like to have a Fortran Compiler to do debug and to execute one code line
-|at time and to watch tha variable value.
-|
-|Do you know free compiler?
-|
-|TNX
-|
| |
| Ciobin 2005-06-02, 3:58 pm |
|
"Herman D. Knoble" <SkipKnobleLESS@SPAMpsu.DOT.edu> ha scritto nel messaggio
news:fihu91dptp3gaaemnqg3h6dhjuqg7pq9fo@
4ax.com...
> For the Windows Platform at least:
> The Salford Windowed Debugger allows what you want - stepping one line
> at a time, or setting breakpoints, and at each break point (or stop line)
> one can display any variables, including matrices. Those variable values
> that are undefined are flagged as value "????????". This is a very
powerful
> debugging tool.
>
> Get the (free for non-commercial purposes) Personal edition of FTN95 at:
> http://www.silverfrost.com/32/ftn95...nal_edition.asp
> or at
> http://www.polyhedron.co.uk/salford...5_personal.html
>
TNX !!!!
Has it a GUI?
| |
| Herman D. Knoble 2005-06-02, 8:58 pm |
| Yes, the Windowed Debugger is the GUI, if that's what you mean.
If you mean the running proggram producing windows, it has Clear Win+
which includes a tutorial.
Skip
On Thu, 02 Jun 2005 18:06:40 GMT, "Ciobin" <lingo74@forzaferrari-libero.it> wrote:
-|
-|"Herman D. Knoble" <SkipKnobleLESS@SPAMpsu.DOT.edu> ha scritto nel messaggio
- |news:fihu91dptp3gaaemnqg3h6dhjuqg7pq9fo
@4ax.com...
-|> For the Windows Platform at least:
-|> The Salford Windowed Debugger allows what you want - stepping one line
-|> at a time, or setting breakpoints, and at each break point (or stop line)
-|> one can display any variables, including matrices. Those variable values
-|> that are undefined are flagged as value "????????". This is a very
-|powerful
-|> debugging tool.
-|>
-|> Get the (free for non-commercial purposes) Personal edition of FTN95 at:
-|> http://www.silverfrost.com/32/ftn95...nal_edition.asp
-|> or at
-|> http://www.polyhedron.co.uk/salford...5_personal.html
-|>
-|TNX !!!!
-|
-|Has it a GUI?
-|
| |
| Herman D. Knoble 2005-06-02, 8:58 pm |
| Ciobin: Sorry that I missed what you mean. Salford FTN95 does not have
a Visual Studio-like GUI. To facilitate compilation for the Windowed Debugger
(sdbg.exe), the easiest way I've found to effect a debug compile is to
make a short .BAT file invoking FTN95 with the debug options. E.g.,
@Echo off
REM This tells the compiled code to stop when an underflow occurs.
set salfenvar=trap_underflows
REM Invoke the compiler with debug options
FTN95 %1.F90 /LIST /NO_OFFSETS /DEBUG /CHECK /UNDEF /FULL_DEBUG
if errorlevel 1 GoTo Done
slink %1.obj
if errorlevel 1 GoTo Done
REM Set your own sourcepath for the debugger.
set sourcepath=c:\hdk\fortex\test
REM Invoke the debugger if compile and link went ok.
start wsdbg %1
:Done
set salfenvar=
set sourcepath=
This will compile, link, and invoke the windowed debugger. At that debugger
screen, you can either click "Run" to run to completion or to the first error;
or you can click "Step Into" to run a line at a time.
If you are compiling all or many f90 modules from a specific subdirectory, then
run the batch with argument with a wild card argument; e.g., *
would compile (and link) *.f90 .
Skip
On Thu, 02 Jun 2005 18:06:40 GMT, "Ciobin" <lingo74@forzaferrari-libero.it> wrote:
-|
-|"Herman D. Knoble" <SkipKnobleLESS@SPAMpsu.DOT.edu> ha scritto nel messaggio
- |news:fihu91dptp3gaaemnqg3h6dhjuqg7pq9fo
@4ax.com...
-|> For the Windows Platform at least:
-|> The Salford Windowed Debugger allows what you want - stepping one line
-|> at a time, or setting breakpoints, and at each break point (or stop line)
-|> one can display any variables, including matrices. Those variable values
-|> that are undefined are flagged as value "????????". This is a very
-|powerful
-|> debugging tool.
-|>
-|> Get the (free for non-commercial purposes) Personal edition of FTN95 at:
-|> http://www.silverfrost.com/32/ftn95...nal_edition.asp
-|> or at
-|> http://www.polyhedron.co.uk/salford...5_personal.html
-|>
-|TNX !!!!
-|
-|Has it a GUI?
-|
| |
| Walt Brainerd 2005-06-02, 8:58 pm |
| Ciobin wrote:
> I'd like to have a Fortran Compiler to do debug and to execute one code line
> at time and to watch tha variable value.
>
> Do you know free compiler?
>
> TNX
>
>
Photran is a GUI development environment with a
debugger that is not yet great, but certainly
does simple things like you ask for. It works
with compilers g95 and gfortran and F.
All of these are free (and available on a CD
for a modest price).
Information and links for all this at fortran.com.
--
Walt Brainerd +1-877-355-6640 (voice & fax)
The Fortran Company +1-520-760-1397 (outside USA)
6025 N. Wilmot Road walt@fortran.com
Tucson, AZ 85750 USA http://www.fortran.com
|
|
|
|
|