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