How to change the complier?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the complier?

742 Views
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!

Labels (1)
0 Kudos
1 Reply

595 Views
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 Kudos