ARM > Efficient C for ARM > C Data Types
Previous topic:
Loop Unrolling
Next topic:
Memory Access
Blog RISC OS PrivateEye PhotoFiler IntroductionToARM Geminus Toolbar Site Containers GitHub Project Hardware iOS Optimisation Aha Retro Links Dump Spectrum Risc PC The Great Escape LEGO Wedding Acorn Doodle Blender 3D Isometric 2D Article ARM Sinclair Ocean Disassembly Chase H.Q. Tip TargetedOptimisation Trace Hard Disc Vector Archimedes Logo Recreation Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron BasicOptimisation Slide MotionMasks Script Python Iyonix QuickFiler Game EfficientC
Certain C data types are more efficient to use for local variables than others.
Therefore the machine’s natural word type, int
, is 32-bit.
C Data Type | Implementation |
---|---|
char |
unsigned 8-bit byte |
short |
signed 16-bit halfword |
int |
signed 32-bit word |
long |
signed 32-bit word |
long long |
signed 64-bit double word |