What the difference between diab,ghs and gcc compiler!

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

What the difference between diab,ghs and gcc compiler!

7,089 Views
liuyang201666
Contributor II

Hello !

   I have buy a  DEVKIT-MPC5748G  board. and use S32DS IDE to develop. I get some examples from nxp.com, It request to use diab or  ghs compiler, but the default compiler of S32DS is GCC.

  I want to know What the difference between diab,ghs and gcc compiler!

Best wish!

Thanks

2 Replies

5,640 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

briefly - gcc is open source and free compiler. Diab and GHS are proprietary compilers and paid. 

technical difference is that GHS, Diab and gcc uses different linker file structure and there are incompatibilities in pragma directives. You can modify WindRiver or GreenHills project to be able compile with gcc. Or you can install Windriver plugin into S32DS: HOWTO: Install Wind River compiler Eclipse plug-in into S32 Design Studio 

More detail about differences you can find on GHS, WindRiver and GNU gcc web pages pages. 

Diab Compiler Product Overview 

Green Hills Optimizing Compilers 

GCC, the GNU Compiler Collection- GNU Project - Free Software Foundation (FSF) 

Jiri

5,640 Views
liuyang201666
Contributor II

Thank you so much! I understand a little bit, I am trying to modify the code to use gcc compiler!

0 Kudos
Reply