← Monday, September 28, 2026Languages & toolsDeep dive

C’s flexible integer sizes supported portability across unusual machines

pikuma.com 17 min read Editor score 7/10

The piece explains how C’s flexible integer sizes addressed computers with word sizes from 12 to 60 bits, rather than assuming a 32-bit int. It offers useful historical context for portability and language design trade-offs.

What
C's native integer types, including int and long, do not have fixed sizes across machines.
How
Flexible sizes let C fit systems with different word sizes; the C99 stdint.h header also provides fixed-width integer types.
Why it matters
Engineers writing portable code must distinguish machine-dependent types from fixed-width types when size matters.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.