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.

C6678多核运行



C6678的芯片,CCS5.0.3,Windows XP ,想利用8个核同时运行一个程序!程序大致如下:

void main()

{

FILE *fp = NULL;

unsinged char *buf = NULL;

fp = fopen("C:\\jpgx.yuv","wb");

buf = malloc(160000);

fread(buf,1,160000,fp);

image_interlace(buf,704,480,704);

free(buf);

}

8个核同时fread时,程序就崩溃了?是什么原因?

  • Conghu你好:

    我在simulator上尝试跑你的程序,(除去image_interlace函数)

    8个核可以同时进行没有问题。

    你也可以检查下你的cmd文件,因为你这里要申请160kB的内存,是不是堆栈不够的问题。

    谢谢!