Choose a C binary according to the enviroment

前端 未结 4 1340
-上瘾入骨i
-上瘾入骨i 2021-01-16 16:11

I have compiled my code with specific flags (-Os, -O2, -march=native and their combinations) in order to produce a faster execution time.

But my problem is that I d

4条回答
  •  爱一瞬间的悲伤
    2021-01-16 16:22

    Is there a reason you can't just recompile your source code on each machine? Compilers are already written and optimized exactly for this kind of stuff. Simply recompile your source code on that machine architecture and you'll have a binary that runs just fine on that machine.

提交回复
热议问题