C (C23)

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot C (C23) — released 31 October 2024 · lifecycle current

Family C — shelf: Systems

The language exists to control memory and hardware directly: a runtime is optional, and layout is the programmer’s business. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory C (1972 — Dennis Ritchie, Bell Labs) · C23 (31 October 2024 — ISO/IEC 9899:2024)

Tags

Use — Systems, Embedded

Paradigm — Imperative, Procedural

Platform — Native, Embedded target

Lifecycle — Current

Memory — Manual

Typing — Static, weak

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to C (C23); an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

1 Assessment

This page assesses C in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 36.0/100 · Ecosystem coupling 80.5/100 · Engineering readiness 52.0/100

1.1 Core coupling

1.1.1 Type

  • ✅ Structs separate data: Pure data, no methods
  • ✅ Function pointers enable polymorphism: Can pass behavior as data
  • ❌ No encapsulation: Everything is public
  • ❌ No generics: Void pointers couple to type casting
  • ✅ No inheritance: Can’t create coupled hierarchies
  • ❌ Header files couple: Includes create compilation dependencies
  • ❌ Macros couple: Preprocessor doesn’t respect scope
  • ❌ No namespaces: Global namespace pollution

1.1.2 Construction

  • ✅ Explicit memory management: Allocation separate from initialization
  • ✅ Designated initializers: Can initialize specific fields
  • ❌ No constructors: Manual initialization couples to usage
  • ❌ Global state common: Static variables couple modules
  • ❌ One value, many names: pointers alias freely, restrict is an opt-in promise the compiler does not check, and an assignment shares the object the pointer addresses (C6)
  • ❌ File-scope initializers elaborate in an order unspecified across translation units (C8)

1.1.3 Memory

  • ✅ Manual control enables precise memory strategy: Can separate memory management from logic
  • ✅ Explicit allocation/deallocation: malloc/free make lifetime visible
  • ❌ No safety: Use-after-free, double-free, memory leaks all possible
  • ❌ No RAII: Must manually track and free resources
  • ✅ Predictable: No GC pauses, deterministic performance
  • ❌ Pointer arithmetic couples to memory layout: Buffer overruns couple to hardware, with no abstraction over memory
  • ✅ Custom allocators: Can decouple allocation strategy (arena, pool, etc.)
  • ❌ Undefined behavior on errors: Buffer overruns, null derefs, and other memory-safety violations are UB
  • ❌ Storage arrives uninitialized: reading an automatic object before initialization is undefined behaviour, and malloc returns bytes nobody wrote, so every read depends on a write the code must prove happened on every path (M5)
  • ❌ Bytes can be read as a type they never were: a union member, a pointer cast, or a char* read reinterprets storage with no check, and only the effective-type rule separates the honest puns from the undefined ones (M6)
  • ❌ The undeclared class has no catch: a wild pointer’s trap ends the program, and the language’s failure surface is values — the trap is not a value (Er6)

1.1.4 Error

  • ✅ Explicit error codes: Return values make errors visible
  • ❌ No enforcement: Can ignore return values
  • ❌ errno couples: Global error state couples functions
  • ❌ NULL everywhere: Pointer errors couple all code
  • ❌ A fault ends the program: a trap or an illegal access ends the process, and the language publishes no recoverable unit — setjmp jumps out of frames, it isolates nothing (Er5)

1.1.5 Concurrency

  • ❌ pthreads manual: All synchronization explicit
  • ❌ Shared mutable state default: No protection
  • ❌ Data races are undefined behavior: No prevention
  • ⚠️ Explicit is predictable: At least coupling is visible
  • ❌ A thread is an operating-system thread: pthread_create reserves one for the task’s whole life, and a blocked task holds it (K6)

1.1.6 Platform

  • ✅ No platform owner: The language is standardised by ISO/IEC and implemented independently by GCC, Clang, and MSVC, so no single vendor controls it
  • ✅ No required platform runtime: A conforming program depends only on the C standard library, not on a vendor runtime
  • ✅ Every mainstream platform has a C compiler: Linux, macOS, Windows, and embedded targets all have conforming implementations, and operating systems expose a C ABI to other languages
  • ✅ No single-implementation dependence: Source compiles under more than one compiler, so the loss of one implementation does not strand the code

1.1.7 Trade-offs (not coupling)

  • Power vs. Safety: Complete control couples to complete responsibility for safety
  • Simplicity vs. Safety: No abstractions means manual discipline required to control coupling
  • Performance vs. Correctness: Optimization couples to unsafe patterns (buffer tricks, pointer arithmetic)
  • Portability vs. Platform Access: Platform-specific code couples to hardware/OS
  • Manual Memory Management: Must couple resource acquisition to every usage site
  • Undefined Behavior Everywhere: Memory errors couple entire program to runtime environment
  • Header Dependencies: Changes to one header couple to all files that include it (transitively)

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ Maximum performance: No abstraction overhead
  • ✅ No GC: Deterministic, predictable
  • ✅ Full control: Manual everything
  • ✅ Predictable: What you write is what runs
  • ✅ Minimal runtime: Runs anywhere

1.2.2 Ecosystem

  • ✅ Ubiquitous: Available on every platform
  • ⚠️ Build systems: Make, autotools, CMake fragmentation
  • ✅ Mature tooling: GCC, Clang, debuggers
  • ⚠️ No package manager: Manual dependency management
  • ✅ Stable ABI on a given platform: A platform’s C ABI is long-stable, so binaries built by ABI-compatible compilers interoperate on that platform (the C standard itself defines no ABI, and compatibility is not guaranteed across compilers or targets)
  • ✅ Objects cross compilers on the platform’s published C ABI [5] (Ec8)

1.2.3 Evolution

  • ✅ Extremely stable: C89/C99/C11/C17/C23 all backward compatible
  • ✅ No breaking changes: Code from 1980s still compiles
  • ✅ Conservative: Changes are minimal
  • ⚠️ Slow evolution: New features take decades
  • ❌ Build variants multiply: the C preprocessor’s #ifdef tree selects which statements exist, so the shipped binary is one selection from a space no suite covers, and every guard must agree with every combination that ships (V7)

1.2.4 Domain

  • ✅ Excellent for systems: OS kernels, drivers
  • ✅ Great for embedded: Minimal footprint
  • ✅ Strong for performance: No overhead
  • ✅ Good for portability: Runs everywhere
  • ⚠️ Not for application dev: Too low-level

1.2.5 Learning

  • ✅ Simple language: Small, learnable
  • ❌ Hard to master: Undefined behavior, pointers
  • ✅ Lots of resources: K&R, tutorials
  • ❌ Many footguns: Easy to shoot yourself

1.2.6 Syntax

  • ✅ Simple, direct: Minimal syntax
  • ❌ No abstractions: Manual everything
  • ❌ Pointer syntax: int *(*fp)(void) confusing
  • ✅ Explicit: Clear what’s happening

1.2.7 Testing

  • ⚠️ Testing frameworks: Check, Unity, cmocka
  • ✅ Excellent debuggers: Gdb, lldb
  • ❌ Manual memory tracking: Valgrind needed
  • ⚠️ UB makes debugging hard: Anything can happen

1.2.8 Security

  • ❌ Memory unsafe: All memory bugs possible
  • ❌ Buffer overflows: No bounds checking
  • ❌ Undefined behavior: Security vulnerabilities
  • ❌ No protection: Manual everything
  • ❌ Fixed-width integers wrap; signed overflow is undefined, so the optimizer deletes the checks that catch it; unsigned is modulo 2^W by definition (Q4)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
object file compiled yes yes — A platform’s C layout and calling convention are the published interface, and conforming compilers target it [5]

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ Builds embed include paths, library state, and preprocessor definitions; no byte-reproducible default exists. (Y1)
  • ❌ Libraries resolve from the system and toolchain state at build time. (Y2)
  • ❌ The distribution records no compiler version per project. (Y14)
  • ✅ The makefile (or build description) is the contract the builder reads. (Y18)

1.3.2 Supply chain

  • ❌ System packages and vendored sources carry no signed provenance by default. (Y3)
  • ❌ No advisory feed joins CVEs to the libraries a program links. (Y16)

1.3.3 Observability

  • ❌ No tracing standard exists in the language. (Y5)
  • ❌ printf and syslog carry no structure by contract. (Y6)
  • ❌ A fault ends in a signal; core dumps are a platform setting, not a language default. (Y15)

1.3.4 Feedback

  • ❌ No debugger ships with a compiler; gdb and lldb are separate projects. (Y13)

1.3.5 Interop

  • ✅ The C FFI is the language itself: any library with a header is callable. (Y9)
  • ✅ C compilers target every common architecture and platform. (Y10)

1.3.6 Governance

  • ✅ The standard enumerates the corners, and a suite runs: C’s implementation-defined behaviors are listed (J.2), and the NCAR C conformance suite runs against independent compilers (Y17)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ✅ Compiles to native code: the fastest class in the language energy and time benchmarks [6], [7]. A causal re-analysis attributes the difference to execution time [8].

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ✅ A large training corpus and strong code-generation results: models write this language well [9], [10].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ✅ A standards-qualified toolchain or an established safety standard covers this language.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language ✅ −15
T2 weak static language ✅ −8
T3 dynamic/duck dispatch language — 0
T4 no sum types language — 0
T5 no generics language ✅ −4
T6 no namespaces language ✅ −8
T7 type erasure/reflection language — 0
T8 operator overloading language ✅ −4
T9 inheritance required for polymorphism language ✅ −4
T10 no null-safety language ✅ −8
T11 no module boundary language ✅ −8
T12 no effect tracking language ✅ −8
T13 async/sync colouring language — 0
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language — 0
Type cost −20.3 (−71)
Construction C1 global mutable state by default language ✅ −15
C2 no immutability by default language ✅ −4
C3 constructors coupled to allocation language ✅ −4
C4 no constructor/validation language ✅ −4
C5 unpinned collection order language — 0
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language — 0
C8 no source-visible init order language ✅ −8
Construction cost −12.3 (−43)
Memory M1 manual deallocation runtime ✅ −15
M2 GC non-deterministic pauses runtime — 0
M3 no RAII language ✅ −4
M4 no ownership model language ✅ −8
M5 uninitialized reads language ✅ −8
M6 unchecked reinterpretation language ✅ −8
Er6 uncatchable runtime fault language ✅ −8
M7 reference cycles leak runtime — 0
Memory cost −14.6 (−51)
Error Er1 no structured path language ✅ −15
Er2 unchecked exceptions only language — 0
Er3 errors ignored/non-exhaustive language ✅ −4
Er4 no composable result type language ✅ −4
Er5 no isolation unit for a fault runtime ✅ −8
Error cost −8.9 (−31)
Concurrency K1 GIL/no parallel runtime — 0
K2 shared mutable state default language ✅ −8
K3 manual sync no race detection runtime ✅ −8
K4 no structured concurrency language ✅ −4
K5 no primitives language — 0
K6 thread-per-task cost runtime ✅ −8
Concurrency cost −8.0 (−28)
Platform P1 cannot function outside one vendor/domain context — 0
P2 single-vendor but other uses context — 0
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost 0

Core coupling score: 36.0/100 — 224 of the 350 inventory points are present, so the axis cost is 100 × 224 ÷ 350 = 64.0 and the score is 100 − 64.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime — 0
R3 JIT warmup runtime — 0
Performance cost 0
Ecosystem Ec1 no package manager context ✅ −4
Ec2 fragmented tooling context ✅ −8
Ec3 small/niche/discontinued context — 0
Ec4 proprietary context — 0
Ec5 platform-locked tooling context — 0
Ec6 monoculture context — 0
Ec7 legacy burden context — 0
Ec8 unpromised binary boundary context — 0
Ec9 unpromised data boundary context — 0
Ecosystem cost −4.7 (−12)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context — 0
V4 glacial standards context — 0
V5 silent default drift runtime — 0
V7 build-variant state space context ✅ −8
Evolution cost −3.1 (−8)
Domain D1 domain/vendor lock-in context — 0
D3 framework forces architecture context — 0
Domain cost 0
Learning L1 steep context — 0
L2 large surface/multi-paradigm context — 0
L3 sparse docs context — 0
Learning cost 0
Syntax S1 verbose language — 0
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost 0
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime — 0
Testing cost 0
Security Q1 memory-unsafe language ✅ −15
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context — 0
Q4 silent integer overflow language ✅ −15
Security cost −11.7 (−30)

Ecosystem coupling score: 80.5/100 — 50 of the 256 inventory points are present, so the axis cost is 100 × 50 ÷ 256 = 19.5 and the score is 100 − 19.5. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context ✅ −8
Y14 no toolchain version pin context ✅ −8
Y18 no machine-read project contract context — 0
Reproducibility cost −18.1 (−31)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context — 0
Y16 no advisory feed context ✅ −8
Supply chain cost −13.5 (−23)
Observability Y5 no stable tracing standard context ✅ −8
Y6 no structured logging context ✅ −4
Y15 no post-mortem diagnostics runtime ✅ −8
Observability cost −11.7 (−20)
Feedback Y7 slow build context — 0
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context ✅ −8
Feedback cost −4.7 (−8)
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context — 0
Interop cost 0
Governance Y11 single-vendor governance context — 0
Y12 closed specification context — 0
Y17 no conformance mechanism context — 0
Y19 no published parser context — 0
Governance cost 0

Engineering readiness score: 52.0/100 — 82 of the 171 inventory points are present, so the axis cost is 100 × 82 ÷ 171 = 48.0 and the score is 100 − 48.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: C provides no coupling prevention mechanisms but also imposes few forced coupling constructs — the language itself is neutral. With discipline, developers can separate concerns through function pointers, explicit error codes, and manual memory management. Without discipline, globals, macros, and undefined behavior couple everything. Main insight: coupling in C is entirely up to the programmer. The same language can produce extremely low or extremely high coupling depending on how it is used.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
ISO/IEC JTC 1/SC 22, “Information technology — programming languages — C.” International Organization for Standardization; International Standard ISO/IEC 9899:2024 (C23), Geneva, Switzerland, 2024.
[5]
H. Lu, M. Matz, M. Girkar, J. Hubička, A. Jaeger, and M. Mitchell, “System V Application Binary Interface: AMD64 architecture processor supplement.” x86 psABI project; Version 1.0, x86 psABI project, 2025. Available: https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build
[6]
R. Pereira et al., “Energy efficiency across programming languages: How do energy, time, and memory relate?” in Proceedings of the 10th ACM SIGPLAN international conference on software language engineering (SLE), 2017, pp. 256–267. doi: 10.1145/3136014.3136031.
[7]
R. Pereira et al., “Ranking programming languages by energy efficiency,” Science of Computer Programming, 2021, doi: 10.1016/j.scico.2021.102609.
[8]
N. van Kempen, H.-J. Kwon, D. T. Nguyen, and E. D. Berger, “It’s not easy being green: On the energy efficiency of programming languages,” in Proceedings of the 40th IEEE/ACM international conference on automated software engineering (ASE), 2025. doi: 10.1109/ASE63991.2025.00131.
[9]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.
[10]
Y. Qing et al., “EffiBench-x: A multi-language benchmark for measuring efficiency of LLM-generated code,” in Advances in neural information processing systems 38 (NeurIPS), datasets and benchmarks track, 2025. doi: 10.48550/arXiv.2505.13004.