Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
Code frequently embeds assumptions about data models. For example some code bases require pointer and {{long}} to have the same size, while other large code bases require {{int}} and {{long}} to be the same size \[[van de Voort 07|AA. References#vanBibliography#van de Voort 07]\]. These types of assumptions, while common, make the code difficult to port and make the ports error prone. One solution is to avoid any implementation-defined behavior. However, this can result in inefficient code. Another solution is to include either static or runtime assertions near any platform-specific assumptions so they can be easily detected and corrected during porting.

...

Wiki Markup
\[[ISO/IEC PDTR 24772|AA. References#ISOBibliography#ISO/IEC PDTR 24772]\] "STR Bit Representations"
\[[Open Group 97a|AA. References#OpenBibliography#Open Group 97b]\]
\[[van de Voort 07|AA. References#vanBibliography#van de Voort 07]\]

...

04. Integers (INT)      04. Integers (INT)      INT01-C. Use rsize_t or size_t for all integer values representing the size of an object