출처 : http://www.codeproject.com/KB/architecture/20ISSUES64BIT.aspx
Program errors occurring while porting C++ code from 32-bit platforms on 64-bit ones are observed. Examples of the incorrect code and the ways to correct it are given. Methods and means of the code analysis which allow to diagnose the errors discussed, are listed
Table of contents
- Introduction
- Off-warnings
- Use of the functions with a variable number of arguments
- Magic numbers
- Storing of integers in double type
- Bit shifting operations
- Storing of pointer addresses
- Memsize types in unions
- Change of an array type
- Virtual functions with arguments of memsize type
- Serialization and data exchange
- Bit fields
- Pointer address arithmetic
- Arrays indexing
- Mixed use of simple integer types and memsize types
- Implicit type conversions while using functions
- Overload functions
- Data alignment
- Exceptions
- The use of outdated functions and predefined constants
- Explicit type conversions
- Error diagnosis
- Unit test
- Code review
- Built-in means of compilers
- Static analyzers
- Conclusion
- Resources
- History
'C C++' 카테고리의 다른 글
Tool for converting VC++2005 project to linux makefile (0) | 2008.09.09 |
---|---|
MonitorIPScanner (0) | 2007.05.07 |
리눅스 소켓 프로그래밍의 다섯 가지 함정 (0) | 2007.03.05 |