QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8252|回复: 56

gcc可以pentium4-pc-linux-gcc 么?

[复制链接]
发表于 2006-9-4 23:30:59 | 显示全部楼层 |阅读模式
现在是 i686-pc-linux-gnu-gcc 。

不知道能不能变成 pentium4-pc-linux-gnu-gcc ??
编译出的程序有没有性能提升?
如果可以,怎么弄?
发表于 2006-9-4 23:40:08 | 显示全部楼层
[quote:feedcf6339="jiangtao9999"]现在是 i686-pc-linux-gnu-gcc 。

不知道能不能变成 pentium4-pc-linux-gnu-gcc ??
编译出的程序有没有性能提升?
如果可以,怎么弄?[/quote]
不行,CHOST别去动它。
http://www.gentoo.org/doc/en/han ... mp;chap=5#doc_chap5
回复

使用道具 举报

 楼主| 发表于 2006-9-4 23:43:35 | 显示全部楼层
这个名字表明的是什么意思?
arm 的交叉编译就叫 arm-linux-gnu-gcc。
那么 pentium4-pc-linux-gnu 是不是就是专门 pentium4 的编译器?

在我自己机器上用,我不需要兼容其他的 CPU 。
我要最具针对性的编译。
回复

使用道具 举报

发表于 2006-9-4 23:45:36 | 显示全部楼层
The CHOST variable declares the target build host for your system. This variable should already be set to the correct value.  Do not edit it as that might break your system. If the CHOST variable does not look correct to you, you might be using the wrong stage3 tarball.
回复

使用道具 举报

 楼主| 发表于 2006-9-4 23:47:15 | 显示全部楼层
问题是:我就是想改他……………………
回复

使用道具 举报

发表于 2006-9-4 23:47:44 | 显示全部楼层
[quote:6580587dab="jiangtao9999"]...

在我自己机器上用,我不需要兼容其他的 CPU 。
我要最具针对性的编译。[/quote]
这个用-march来指定。
回复

使用道具 举报

 楼主| 发表于 2006-9-4 23:48:35 | 显示全部楼层
用 -march 感觉不爽………………
回复

使用道具 举报

发表于 2006-9-5 00:36:43 | 显示全部楼层
[quote:329398ef68="jiangtao9999"]用 -march 感觉不爽………………
[/quote]
那你就试试吧,系统崩了不要掉眼泪!
回复

使用道具 举报

发表于 2006-9-5 01:08:10 | 显示全部楼层
查gcc的手册,应该没有吧,估计也没什么用
回复

使用道具 举报

发表于 2006-9-5 09:52:43 | 显示全部楼层
JT 快试试,试成功了,我也改。前些天装系统,看着它老觉的很不爽
回复

使用道具 举报

发表于 2006-9-5 11:44:31 | 显示全部楼层
pentiumpro到pentium4统统视为686了吧
回复

使用道具 举报

发表于 2006-9-5 13:24:09 | 显示全部楼层
pc一直向下兼容,万一他有自己的体系呢?
回复

使用道具 举报

 楼主| 发表于 2006-9-5 23:16:17 | 显示全部楼层

pentium4 = i786 ?????

checking build system type... i786-pc-linux-gnu
checking host system type... i786-pc-linux-gnu
checking target system type... i786-pc-linux-gnu
回复

使用道具 举报

发表于 2006-9-6 12:09:57 | 显示全部楼层
楼上咋弄出来的?
回复

使用道具 举报

 楼主| 发表于 2006-9-6 23:05:03 | 显示全部楼层
就改了 CHOST ,之后重新 emerge gcc 的时候,configure 的过程就这么显示的。
但因为太晚了,就没有等 gcc 编译完成就 ^C 了。
所以效果不清楚。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-7 15:01 , Processed in 0.237017 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表