linux 下xlc编译器,关于AIX中,cc,xlc等编译命令的区别

aix编译器中,很多命令似乎有所区别,不知道区别到底是什么。有些程序用有些命令可以编译,但换一个就不行了,命令列表如下

xlC [ option | inputfile ]...

xlc [ option | inputfile ]...

cc [ option | inputfile ]...

c89 [ option | inputfile ]...

xlC128 [ option | inputfile ]...

xlc128 [ option | inputfile ]...

cc128 [ option | inputfile ]...

xlC_r [ option | inputfile ]...

xlc_r [ option | inputfile ]...

cc_r [ option | inputfile ]...

xlC_r4 [ option | inputfile ]...

xlc_r4 [ option | inputfile ]...

cc_r4 [ option | inputfile ]...

xlC_r7 [ option | inputfile ]...

xlc_r7 [ option | inputfile ]...

cc_r7 [ option | inputfile ]...

|

XL C/C++的确省路经为/opt/ibmcmp,XL C/C++有多组具体的编译器命令组成,每组编译器命令都

有其相应的线程版本,gxlc和gxlc++除外,如下表所示:

编译器命令

线程版本

描述

xlC 或 xlc++

xlC_r 或 xlc++_r

编译C++的源代码

xlc

xlc_r

编译C的源代码,编译器使用如下参数:

-qlanglvl=extc89, -qalias=ansi, -qcpluscmt, -qkeyword=inline

c89

c89_r

ISO C89标准的编译器,使用如下的编译参数:

-qlanglvl=stdc89,-qalias=ansi, -qstrict_induction, -qnolonglong, -D_ANSI_C_SOURCE, -D__STRICT_ANSI__

c99

c99_r

ISO C99标准的编译器,使用如下的编译参数:

-qlanglvl=stdc99, -qalias=ansi, -qstrict_induction, -D_ANSI_C_SOURCE, -D_ISOC99_SOURCE, -D__STRICT_ANSI__

cc

cc_r

旧版本的C代码编译器,不要求完全遵从C89和C99标准,使用如下编译参数:

-qlanglvl=extended, -qnoro, -qnoroconst

xlCcore 或

xlc++core

xlCcore_r或

xlc++core_r

与xlC和xlc++雷同,但编译器只链接运行库的核心部分

gxlc或

gxlc++

将GNU gcc和g++的编译转化为xlC或xlc++的编译

在大多数情况下,使用

xlC编译C++的源代码,xlc编译C的源代码,如果混合C和C++的源代码,则使用xlC编译链接。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值