473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Recommended version of gcc for Python?


Is there a recommended version of gcc that I should be using to
compile Python? I've compiled Python 2.4 with gcc 3.3.4 on Ubuntu
Debian GNU/Linux. However, I notice that gcc 3.5 and gcc 4.0 are
available for installation.

Dave

--
http://www.rexx.com/~dkuhlman
Jul 19 '05 #1
4 1782
On 2005-05-16, Dave Kuhlman wrote:
Is there a recommended version of gcc that I should be using to
compile Python? I've compiled Python 2.4 with gcc 3.3.4 on Ubuntu
Debian GNU/Linux. However, I notice that gcc 3.5 and gcc 4.0 are
available for installation.


I am on Gentoo Linux and use gcc 3.4.3 (~x86 == unstable) for almost
all ebuilds including Python 2.3.5 (x86 == stable). No malfunction so
far, and Gentoo depends heavily on Python. _If_ gcc 3.4 compiles a
source the resulting binary will work. The only problem is, not all
ebuilds compile without errors using gcc 3.4.

Simply try it.


Bernd

--
Those who desire to give up freedom in order to gain security,
will not have, nor do they deserve, either one. [T. Jefferson]
Jul 19 '05 #2
Most versions of gcc should be just fine to compile Python. Python is
targeted at ANSI/ISO C compilers, but does not yet use any C99 features.

I don't think there was ever such a thing as "gcc 3.5";
http://gcc.gnu.org/ lists 4.0 as the "current release series" and 3.4.3
as the "previous release series". I'd steer clear of this version.

I recommend using the default compiler of your distribution, unless you
know of a specific reason to use a different one.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCiPG0Jd01MZaTXX0RAoq/AJ9nv4G8J1h06V5CzkniCt9nV0ugXACff3Mo
8f2aOpZs6coAvJxtJgMTZ28=
=FCd/
-----END PGP SIGNATURE-----

Jul 19 '05 #3
On Ubuntu, I have tried 3.3.4, 3.4.3 and 4.0. Compile and make test ran
successfully with all three. For my benchmark, platform, and compiler
options, 3.4.3 was the fastest by approximately 2%.

I would normally use the default compiler for your distribution.

casevh

Jul 19 '05 #4
ca****@comcast.net wrote:
On Ubuntu, I have tried 3.3.4, 3.4.3 and 4.0. Compile and make
test ran successfully with all three. For my benchmark, platform,
and compiler options, 3.4.3 was the fastest by approximately 2%.

I would normally use the default compiler for your distribution.


So, I'll stay with what I've got (3.3.5) for now. Thanks for the
help.

Dave

--
http://www.rexx.com/~dkuhlman
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bruno Lienard | last post by:
Look at the recommended books about Python, by the IBM developerWorks site: http://devworks.krcinfo.com/WebForms/ProductList.aspx?Search=Category&id=1400&p=OpenSourceProjects So, a lot of...
13
by: Michele Simionato | last post by:
What is the recommended way of generating HTML from Python? I know of HTMLGen and of few recipes in the Cookbook, but is there something which is more or less standard? Also, are there plans to...
48
by: monkey | last post by:
Read through python site for programming tool, really plenty of choices :-) (For c++, I just can't breath with very very limited choices) Tried Spe, it come with wxGlade built-in very nice(is Spe...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
13
by: Michael M. | last post by:
In Perl, it was: ## Example: "Abc | def | ghi | jkl" ## -"Abc ghi jkl" ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st pipe). $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g;...
4
by: John Nagle | last post by:
What's the recommended FastCGI module for Python. There are at least five: The Robin Dunn / Total Control Software version: http://alldunn.com/python/fcgi.py Last revised in 1998. The...
3
by: Ge Chunyuan | last post by:
hi Group: I am a new comer for Python, I wonder which IDE is recommended in Windows OS. Can anyone give some suggestion. Thanks indeed Ge Chunyuan
0
by: Jeroen Ruigrok van der Werven | last post by:
-On , YIN Ming (Ming.YIN@murex.com) wrote: See http://www.in-nomine.org/2008/04/11/python-26a2-execution-times-with-various-compilers/ that I wrote a while ago. Basically for Python GCC 3.4.6...
0
by: YIN Ming | last post by:
Dear Jeroen, Thanks so much for your help. :) Best regards, Yin Ming -----Original Message----- From: Jeroen Ruigrok van der Werven Sent: Friday, July 11, 2008 5:55 PM
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.