Difference between revisions of "Debugging"

From SourceWiki
Jump to navigation Jump to search
Line 4: Line 4:
 
=example 2=
 
=example 2=
  
First using g95 & the Sun compiler...
+
First using g95 & the Sun compiler...we see the loop stop as soon as we're beyond the boundaries of the array.
  
Now using the ifort compiler.
+
Now the Portland group compiler..not so lucky!
  
see the difference when we add:
+
Now using the ifort compiler...different again.
 +
 
 +
Interesting, huh?
 +
 
 +
Still using ifort, let's look at the difference when we add:
  
 
* -traceback
 
* -traceback

Revision as of 18:43, 29 February 2008

Debugging you program: Various techniques

Getting the content for the practical

example 2

First using g95 & the Sun compiler...we see the loop stop as soon as we're beyond the boundaries of the array.

Now the Portland group compiler..not so lucky!

Now using the ifort compiler...different again.

Interesting, huh?

Still using ifort, let's look at the difference when we add:

  • -traceback
  • -CB

to the compilation flags (see Makefile).