Groups
Groups
Sign in
Groups
Groups
Code::Blocks中国开发组
Conversations
About
Send feedback
Help
clang,gcc编译都是生成s汇编,并调as生成obj?
166 views
Skip to first unread message
lynnux
unread,
Aug 8, 2013, 5:39:04 AM
8/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chi...@googlegroups.com
带-v输出看起来好像是这样,我是看clang编译才发现,没想到gcc也是这样
clang没有as,它直接生成好s汇编文件,然后直接调用gcc编译s文件生成obj
是这样吗?真有点意思
xunxun
unread,
Aug 8, 2013, 9:40:26 AM
8/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chi...@googlegroups.com, lynnux
因为clang也是调用的binutils,和gcc没关系
--
Best Regards,
xunxun
lynnux
unread,
Aug 8, 2013, 11:28:18 AM
8/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chi...@googlegroups.com
是不是只需要clang的bin就行了,比如只拷贝clang到ming的bin里,而不需要那些llvm-开头的exe?
不过好像离不开gcc,虽然gcc也是直接就转给as了。也就是说不能直接改名clang为gcc?
> --
> --
> 您收到此信息是由于您订阅了 Google 论坛“Code::Blocks中国开发组”论坛。
> 要在此论坛发帖,请发电子邮件到
chi...@googlegroups.com
> 要退订此论坛,请发邮件至
chinacb+u...@googlegroups.com
> 更多选项,请通过
http://groups.google.com.hk/group/chinacb?hl=zh-CN
访问
> 该论坛
>
> --- 您收到此邮件是因为您订阅了 Google 网上论坛的“Code::Blocks中国开发组”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到
chinacb+u...@googlegroups.com
。
> 要查看更多选项,请访问
https://groups.google.com/groups/opt_out
。
lynnux
unread,
Aug 8, 2013, 9:14:34 PM
8/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chi...@googlegroups.com
还真的是都生成s文件,参考
http://blog.sunyixing.com/archives/252
lynnux
unread,
Aug 9, 2013, 3:20:10 AM
8/9/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chi...@googlegroups.com
我已经编译好一个可用的clang了,用vs编译的,但却是配合MinGW使用,过期比较艰辛,详见:
http://blog.sina.com.cn/s/blog_5dba09df01018boe.html
现在有个小问题就是和cmake使用时,link的shell32之类变成-lshell32.lib,本该是-lshell32,而且生成的library都是lib后辍,估计是vs编译出来导致,正在找相关地方。
asmwarrior
unread,
Aug 9, 2013, 3:32:52 AM
8/9/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chi...@googlegroups.com, lynnux
On 2013-8-9 15:20, lynnux wrote:
> 我已经编译好一个可用的clang了,用vs编译的,但却是配合MinGW使用,过期比较艰辛,详见:
http://blog.sina.com.cn/s/blog_5dba09df01018boe.html
> 现在有个小问题就是和cmake使用时,link的shell32之类变成-lshell32.lib,本该是-lshell32,而且生成的library都是lib后辍,估计是vs编译出来导致,正在找相关地方。
博客写得不错,关注中!
Reply all
Reply to author
Forward
0 new messages