How to change the complier?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to change the complier?

760 次查看
xiaofangu
Contributor III

Hello,there,

      As I create a demo code on S32DS.Power.2017.R1, there is precompiler code #ifdef __ghs__  and #ifdef __DCC__ in "complier_api.h", and fortunately we have both GHS and WindRiver compliers, but I cannot find the micro definition of __GNUC__,so where can I change the micro definiton?and where can I find the ppc_ghs.h and diab/ppcasm.h?

Image 1.png

Best Regards!

标签 (1)
0 项奖励
1 回复

613 次查看
liuyang201666
Contributor II

Hello !

   I think you only need to changed you compiler tools in Properites=>C/C++ Build => Tool Chain Editor =>Current toolchain. I use Stanrdard S32D toolchain for ***. then It use GNUC to compiler.

0 项奖励