Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
100 個の要素の配列があり、これらの 100 個の要素すべてを追加したいと考えています。以下と同じようにCコードを使用しています
for(i=0;i<100;i++) { sum+= a[i]; }
プロセッサが 100 命令サイクルを使用して 100 個の要素を追加すると仮定すると、アプリケーションの速度が低下します。したがって、アプリケーションを高速化するために、1 つの命令サイクルで 100 個の要素を追加する命令があるかどうかを知りたいです。