Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

How do get FORTRAN variable addresses to display under the debugger

dsac_kevin
Beginner
1,765 Views

Were running

Intel Fortran Compiler Integration for Microsoft Visual Studio .NET 2002, Version 9.1.3663.2002, Copyright (C) 2002-2006 Intel Corporation

With MicroSoft Studio .NET.

How do we get the address of the debugged variables to be available.

We get the name, value and type but not the address.

Is there some setting we have to change under Properties for the project?

0 Kudos
3 Replies
jimdempseyatthecove
Honored Contributor III
1,765 Views

Type the variable name into the Memory Watch window. Once entered, the memory watch window shows the Hex address.

Jim Dempsey

0 Kudos
Jeffrey_A_Intel
Employee
1,765 Views

LOC is your friend.

In a Watch window, enter

LOC(variable)

as the name of the entity to be Watch'd. Change the display radix to hex if you want or, moresimply, enter

LOC(variable),x

to display the address in hex regardless of the default display radix.

You can also "watch"

ALLOCATED(variable)

and

ASSOCIATED(variable).

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,765 Views

Didn't know that. Thanks for the tip Jeff.

So some of the intrinsics are known by the debugger.

Back in the old days (ca 1992)using Borland C++ you could enter in a function name with arguments and it would call your function.

Jim Dempsey

0 Kudos
Reply