Skip to content

keeping simple

@vy@mastodon.social

Tag: c standard

don’t defer

December 4, 2023 vy C standard

There is a proposal to add “defer” to C. Its biggest example is taken from code that was originally designed to not manage storage at

Read more

Undefined behavior in C is a reading error.

May 19, 2021 vy C standard

Considering how important “undefined behavior” has become to C semantics and the ISO/IEC JTC1/SC22/WG14 Committee, the lack of any reference to it in the K&R

Read more

Dennis Ritchie on alias analysis in the C programming language 1988

March 19, 2021 vy C standard, programming languages

This 1998 note by Dennis Ritchie from comp.lang.c  (and also  here ) is very current since the concept of noalias has definitely crept back into

Read more

Three modest proposals for the C standard WG14

June 17, 2018 vy C standard, programming languages

Note: these were sent to WG14 as official proposals. See also a longer paper,  something on alias  and Torvalds remarks and Regehr’s paper.  6.12 Proposal to

Read more

Vector optimization with C aliasing

June 17, 2018 vy programming languages

One of the common defenses of the abuse of “undefined behavior” by C compilers, and the stupid aliasing rules in the standard is that those

Read more

Torvalds on aliasing

June 7, 2018 vy C standard, operating systems, programming languages

See also   Dennis Ritchie on aliasing, PLOS article,  pointer alias in C and remarks on the purpose of C.  From: LKML From Linus Torvalds <> Date

Read more

Depressing and faintly terrifying days for the C standard

May 20, 2018 vy programming languages

C STANDARD UNDEFINED BEHAVIOR VERSUS WITTGENSTEIN 1. DEPRESSING AND FAINTLY TERRIFYING Chris Lattner, the architect of the Clang/LLVM C compiler explained the effects of the

Read more

The C standard versus C and the mother of all hacks.

June 26, 2017 vy C standard, programming languages

The Kafkaesque interaction of the C standard and the main open source C compilers was concisely outlined by one of the main LLVM authors back

Read more

The C standard committee effort to kill C continues

June 16, 2017 vy programming languages, systems

Consider the following code: void f(void) { unsigned char x[1]; /* intentionally uninitialized */ x[0] ^= x[0]; printf(“%d\n”, x[0]); printf(“%d\n”, x[0]); return; } In this

Read more
WordPress Theme: Gridbox by ThemeZee.