2 ms·
A compiler that optimizes away memset is not one that could be used for targeting anything that sits on a network.
by kazinator 7y ago
A compiler that optimizes away memset is not one that could be used for targeting anything that sits on a network.
- saagarjha 7y agoThat immediately rules out GCC and Clang…
- kazinator 7y agoI don't think so, unless we're mistaking memset for __builtin_memset.
- scatters 7y agoGCC treats the two identically. See https://github.com/gcc-mirror/gcc/blob/229c0ef777161ec5adfb71ef1611af502541ccda/gcc/builtins.def#L93 https://github.com/gcc-mirror/gcc/blob/229c0ef777161ec5adfb7...
- kazinator 7y agoI see; because the sixth argument (BOTH_P) in that macro call is true.