ARM > Efficient C for ARM > C Data Types
Previous topic:
Loop Unrolling
Next topic:
Memory Access
RISC OS PrivateEye IntroductionToARM PhotoFiler 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 ARM TargetedOptimisation Disassembly Chase H.Q. Tip BasicOptimisation Trace Hard Disc Vector Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron Archimedes Slide EfficientC MotionMasks Script Python Iyonix QuickFiler Game
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 |