2 ms·
Something funny is that GCC may compile your code that uses pointer arithmetic into one that uses an index register, and compile your code that uses an index in
by trealira 2y ago
Something funny is that GCC may compile your code that uses pointer arithmetic into one that uses an index register, and compile your code that uses an index into an array as pointer arithmetic.
https://godbolt.org/z/9KPnnM7Po https://godbolt.org/z/9KPnnM7Po