Made a working example with -O3 -- 2x speedup with different link order