9.22 Execute on a different platform


9.22 Execute on a different platform

9.22.1 Basic tactic

Compile and run the application on a computer system with a different operating system or hardware architecture.

9.22.2 Purpose

Resolve problems using a new or different version of the runtime environment.

9.22.3 Questions answered

  • Was the program making invalid assumptions that are masked by the underlying operating system or hardware architecture?

  • How portable is your code?

9.22.4 Potential problems

You may have only one platform available.

9.22.5 Refined tactics

None.

9.22.6 Related tactics

  • Compile the application with a different compiler, but target it to the same operating system and hardware architecture.

  • Compile the application with the same compiler, but target it to a different operating system or hardware architecture (cross-compilation).

9.22.7 Choosing tactics

Use this tactic when one of the following conditions is true:

  • When the program is a numerical application whose results may depend on the floating-point representation used.

  • The program uses pointers, you’re having trouble stabilizing the problem, and either the operating system doesn’t provide protection for memory locations that are outside of your static data, stack, and heap storage or the hardware permits you to address locations such as 0.

Use this tactic at least once before the program is put into production, as an additional testing strategy.




Debugging by Thinking. A Multidisciplinary Approach
Debugging by Thinking: A Multidisciplinary Approach (HP Technologies)
ISBN: 1555583075
EAN: 2147483647
Year: 2002
Pages: 172

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net