Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Hello , I’m working on optimizing a bubble sort implementation in `C` for an `x86-64` architecture specifically targeting an Intel Core i7 processor using `GCC 11.2` . I noticed that the `-O3` flag resulted in slower performance compared to `-O2` when sorting large arrays of integers 1 million elements in this case.
Here are the timings, average of multiple runs:
CONTRIBUTE TO THIS THREAD