Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i686 use gcc-x32
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
dongfangxunlei
n00b
n00b


Joined: 30 Jan 2013
Posts: 40

PostPosted: Tue Jun 25, 2013 9:11 am    Post subject: i686 use gcc-x32 Reply with quote

Hello,everyone!
I have found that gcc with x32 abi is faster than i686 amd amd64.But some softwares do not support x32 abi.So I want to install a x32 gcc in i686 system.Just the compiler and its depends such as glibc is x32 abi,all other packages will be i686.
How should I do? :lol:
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Thu Jul 25, 2013 8:17 am    Post subject: Reply with quote

I'm not sure I understand precisely what you want, but here are a few pointers:


  • Some applications are indeed faster when built as 32-bit on a multilib amd64 system, but most are faster as 64-bit (albeit somewhat larger and slower to load). The difference is usually negligibly small, though.
  • Even if you built an application as 32-bit, the CHOST would still be i686. Using an older CHOST (e.g. i386) is guaranteed to slow the application down significantly (~ 10%, if my memory serves).
  • Many if not most packages in the amd64 repository are ports from 32-bit code, and so in general work well when built as 32-bit. Doing so is just usually not the point of an amd64 system - if you truly want everything 32-bit, set portage to accept "x86" packages instead.
  • Assuming that you are correct, and 32-bit is faster, building only the compiler and toolchain as 32-bit would not speed any applications up, only compiles, and even them negligibly, since package build phases usually are not efficient enough to be truly CPU-limited.


In short, if I have understood you correctly, I believe you are mistaken in your beliefs, and recommend that you do nothing at all.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jul 25, 2013 11:34 am    Post subject: Reply with quote

Missing the point. X32 != 32-bit x86. Some reading for you. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Thu Jul 25, 2013 11:49 am    Post subject: Reply with quote

Ah, I see, thanks!

That certainly looks like something I'd keep my toolchain lightyears away from, though ... :wink:. My recommendation is unchanged, that is.
Back to top
View user's profile Send private message
Jerry_McBride
n00b
n00b


Joined: 23 Mar 2004
Posts: 10

PostPosted: Sat Dec 27, 2014 7:32 pm    Post subject: Reply with quote

These are old posts... but I've just become interested in this topic.

I manage a couple of 32 bit based servers and I would like to compile only 32 bit applications, etc. Including the tool chain. How does one compile a 32bit only tool chain and then applications?
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Sat Dec 27, 2014 7:44 pm    Post subject: Reply with quote

in that case, take a i686 stage3
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Jerry_McBride
n00b
n00b


Joined: 23 Mar 2004
Posts: 10

PostPosted: Tue Dec 30, 2014 12:53 am    Post subject: Reply with quote

The gcc is multilib...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum