How to change the complier?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change the complier?

1,704件の閲覧回数
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 返信

1,557件の閲覧回数
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 件の賞賛
返信