跳过导航链接 | |
退出打印视图 | |
![]() |
Oracle Solaris Studio 12.3:使用 dbx 调试程序 Oracle Solaris Studio 12.3 Information Library (简体中文) |
要在 dbx 中显示区间表达式,请键入:
demo% cat ShowInterval.f95 INTERVAL v v = [ 37.1, 38.6 ] END demo% f95 -g -xia ShowInterval.f95 demo% dbx a.out (dbx) stop in MAIN (2) stop in MAIN (dbx) run Running: a.out (process id 5217) stopped in MAIN at line 2 in file "ShowInterval.f95" 2 v = [ 37.1, 38.6 ] (dbx) whatis v INTERVAL*16 v (dbx) print v v = [0.0,0.0] (dbx) next stopped in MAIN at line 3 in file "ShowInterval.f95" 3 END (dbx) print v v = [37.1,38.6] (dbx) print v+[0.99,1.01] v+[0.99,1.01] = [38.09,39.61] (dbx) quit demo%
注 - 仅编译为在基于 SPARC 的平台上运行(如果编译时使用 -xarch={sse|sse2},则在 Solaris x86 SSE/SSE2 Pentium 4 兼容的平台上运行;如果编译时使用 -xarch=amd64,则在 x64 平台上运行)的程序中可以使用区间表达式。