我怎么做内联C纯汇编语言?我想做for循环,但不起作用。for(int i=0; i<10; i++) // is this how i will do the assembly language as inline C?// is this how the for loop looks as inline c? } // ?
}
假设我有一张图片,我想检查它的每个像素,看看它是否符合我的需要。在Python语言中使用'for‘需要花费很多时间,而我在C++中做同样的事情要快得多。我听说Numpy正在被用来做它,但我不确定是怎么做的 基本上: for x in range(0, width): if img使用这种简单的Python格式,一帧大约需要5秒,而C++只需要几毫秒。