Microsoft Windows* (XP, Vista, 7)

Performance Tools for Software Developers - printf() format descriptors of 64-bit objects

Solution:

There is no difference between descriptors for 64-bit objects and 32-bit objects. When displaying a 64-bit fixed-precision object ( INT64, UINT64, LONG64, ULONG64, or DWORD64) use the I64 flag with %d.

example:
INT64 x = 1234567890123456;
printf("The 64 bit number is: %I64d ",x;)

As a rule, use %p to display the new pointer types. This will give their full hexadecimal value.

  • Linux*
  • Apple Mac OS X*
  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Intel® C++ Compiler
  • Intel® Fortran Compiler - Default floating point precision differs between Linux*/Mac OS* and Windows*

    The default FPU precision on Linux* and Mac OS* is a 64-bit significant. This equates to the compiler switch -pc80. The corresponding setting on Windows* is a 53-bit significant, equivalent compiler switch -Qpc64. This difference may account for a variation in results when comparing execution of identical programs/algorithms on Linux/Mac OS* and Windows.

  • Linux*
  • Apple Mac OS X*
  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Fortran
  • Intel® C++ Compiler
  • Intel® Fortran Compiler
  • Intel® C++ Compiler - How do I find the package ID so I can receive interactive support?

    Package ID is a required field when you submit an issue to Intel® Premier Support.

    On Windows*, remove the /nologo compiler option and the Package ID will be emitted during compilation. On Linux* and Mac OS*, add the -V compiler option and the Package ID will be emitted during compilation.

    The Package ID will be of the form:

    A_AA_AA_X.X.XXX

    Where A is a letter and X is a numeric digit.

  • Linux*
  • Apple Mac OS X*
  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Intel® C++ Compiler
  • Intel® C++ Compiler for Windows* - A quick way to start using Intel® C++ Compiler for a group of projects

    When you have a lot of projects in your application, you can select only a group of project to use Intel® C++ Compiler. Following is the easiest way:

  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Intel® C++ Compiler
  • size of long integer type on different architecture and OS

    The Intel Compiler treats the size of a "long" integer as 4 bytes or 8 bytes depending on the architecture and operating system, affecting portability. The size of a "long long" integer is always 8 bytes. The size of a "long double" may also vary.
  • Linux*
  • Apple Mac OS X*
  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Intel® C++ Compiler
  • sizeof
  • long integer
  • long double
  • long long integer
  • Pages

    Subscribe to Microsoft Windows* (XP, Vista, 7)