How to change the complier?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the complier?

167 Views
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

20 Views
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