Skip to content

Release v1.1.0: ISO C Strict-Aliasing Compliance

Choose a tag to compare

@gooderfreed gooderfreed released this 23 Jun 00:04
7ecb99e

This release focuses on strict C-standard compliance, eliminating potential undefined behavior (UB) in pointer casting, and hardening static analysis warnings without any performance regressions.

ISO C Strict-Aliasing Compliance:

  • Standard-Compliant Type Punning: Migrated all raw pointer casts and type-punning lookups (in metadata reads/writes and internal malloc pointer tracking) to ISO C-compliant memcpy operations.
  • Harnessed Static Analysis (-Wstrict-aliasing=1): Audited and verified clean compilation (zero warnings) under the most restrictive compiler flag -Wstrict-aliasing=1 across C99, C11, C17, and C23 standards.
  • Zero-Overhead Safe Execution: The compiler optimizes these constant-sized memory copies directly into single machine-word load/store instructions, preserving peak throughput (up to 939 Million ops/sec) while eliminating undefined behavior (UB) and -Wcast-align warnings on strict alignment platforms.