在编写代码是要用到GNU的扩展特性,定义了一个数组如下:
volatile unsigned int pageTable[4*1024] __attribute__((aligned(16*1024)));
但是编译报错:“#66 expected a ";"”
可以确定的是程序中别的地方没问题。所以请教一下,是不是CCS V5.3是不是要做什么设置才能支持GNU扩展。
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.
在编写代码是要用到GNU的扩展特性,定义了一个数组如下:
volatile unsigned int pageTable[4*1024] __attribute__((aligned(16*1024)));
但是编译报错:“#66 expected a ";"”
可以确定的是程序中别的地方没问题。所以请教一下,是不是CCS V5.3是不是要做什么设置才能支持GNU扩展。
CCS只是一个框架,可以把gcc或者TI的编译器设为编译器,TI的编译器对GNU的支持不好。
看您的需求了,可以考虑把GNU设为编译器,这个就需要在ubuntu中装CCS了。