30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Changing a Variable’s Data Type<br />

Type String Language Size Description<br />

$extended C architecturedependent;<br />

often long<br />

double<br />

Extended-precision floatingpoint<br />

number. Extendedprecision<br />

numbers must be<br />

supported by the target<br />

architecture. In addition, the<br />

format of extended floating<br />

point numbers varies depending<br />

on where it's stored. For<br />

example, the x86 register has a<br />

special 10-byte format, which is<br />

different than the in-memory<br />

format. Consult your vendor’s<br />

architecture documentation for<br />

more information.<br />

$float C float Single-precision floating-point<br />

number.<br />

$int C int Integer.<br />

$integer Fortran integer Integer.<br />

$integer_1 Fortran integer*1 One-byte integer.<br />

$integer_2 Fortran integer*2 Two-byte integer.<br />

$integer_4 Fortran integer*4 Four-byte integer.<br />

$integer_8 Fortran integer*8 Eight-byte integer.<br />

$logical Fortran logical Logical.<br />

$logical_1 Fortran logical*1 One-byte logical.<br />

$logical_2 Fortran logical*2 Two-byte logical.<br />

$logical_4 Fortran logical*4 Four-byte logical.<br />

$logical_8 Fortran logical*8 Eight-byte logical.<br />

$long C long Long integer.<br />

$long_long C long long Long long integer.<br />

$real Fortran real Single-precision floating-point<br />

number.<br />

When using a value such as real,<br />

be careful that the actual data<br />

type used by your computer is<br />

not real*4 or real*8, since<br />

different results can occur.<br />

$real_4 Fortran real*4 Four-byte floating-point<br />

number.<br />

$real_8 Fortran real*8 Eight-byte floating-point<br />

number.<br />

$real_16 Fortran real*16 Sixteen-byte floating-point<br />

number.<br />

$short C short Short integer.<br />

$string C char Array of characters.<br />

$void C long Area of memory.<br />

$wchar C platform-specific Platform-specific wide character<br />

used by wchar_t data types<br />

$wchar_s16 C 16 bits wide character whose storage is<br />

signed 16 bits (not currently<br />

used by any platform)<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 317

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!