What the difference between diab,ghs and gcc compiler!

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

What the difference between diab,ghs and gcc compiler!

9,620 次查看
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 回复数

8,171 次查看
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

8,171 次查看
liuyang201666
Contributor II

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

0 项奖励
回复