ARM > Efficient C for ARM > C Data Types
Previous topic:
Loop Unrolling
Next topic:
Memory Access
ARM RISC OS PrivateEye PhotoFiler IntroductionToARM Geminus Toolbar Site Containers GitHub Hardware iOS Optimisation Project Aha Retro Links Dump Spectrum Risc PC The Great Escape LEGO Wedding Acorn Doodle Blender 3D Isometric 2D Article Sinclair Ocean TargetedOptimisation Disassembly Chase H.Q. Tip BasicOptimisation Slide Trace Hard Disc Vector Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron Archimedes 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 |