> In my experience, GCC and Clang optimize sequences of calls to stdlib 
> functions, in which some would affect a no-op, well.

Correct. Both gcc and clang turn `memset()` calls into `__builtin_memset()` 
intrinsics, which the compilers know to treat as assignments.

Reply via email to