This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6455 编译器优化



请问一下,我在做编译器优化的时候,勾选了-mt,但好像没有作用。我的测试程序如下:

#include <stdio.h>

#define src_add (0x00810000)

#define dist_add (0x00811000)

void test(int* src,int* dist);

void main() {

 int* src ;

  int* dist;

 src = (int*)src_add;

 dist = (int*)dist_add;    

test(src,dist); }

 

void test(int* src,int*  dist)

 {  int k;

 for(k=0;k<10;k++)

   {   dist[k] = src[k]+10;  }

}

 

在编译器中,我勾选了-o3,-mt,-k,-mw,去掉了-g,编译后Loop Carried Dependency Bound任然为7,而改为用restrict后,Loop Carried Dependency Bound就变为0了。

这是为什么啊?难道-mt在5.2版本中没用?求指教啊!