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