[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] C/C++ and Python



The 64 bit processors have a 32 bit mode. 64 bit code has different address sizes, so uses a different register set. That should be straight forward to change. The killer is that 64 bit C calling conventions differ between Windows and Unix. They are also more complicated than the 32 bit calling convension. If psyco generates functions on the fly then allowing for that would become involved.

Lenard

René Dudfield wrote:
It can work in 32bit mode... as long as the binary is 32bit. On linux and osx, you can run 32bit binaries on a 64bit system... along side 64bit apps. I think you can do it on windows too... but not as well.

For some things 64bit python is 4x faster for me... so 64bit python is faster than psyco with 32bit psyco for some things. A complicated world we live in ;)



On Fri, Apr 24, 2009 at 11:22 PM, Yanom Mobis <yanom@xxxxxxxxxxxxxx <mailto:yanom@xxxxxxxxxxxxxx>> wrote:

    oh good. But why can't something written for 32bit work on 64bit?
    I thought that a higher bit number was backwards-compatible

    --- On *Thu, 4/23/09, René Dudfield /<renesd@xxxxxxxxx
    <mailto:renesd@xxxxxxxxx>>/* wrote:


        From: René Dudfield <renesd@xxxxxxxxx <mailto:renesd@xxxxxxxxx>>

        Subject: Re: [pygame] C/C++ and Python
        To: pygame-users@xxxxxxxx <mailto:pygame-users@xxxxxxxx>
        Date: Thursday, April 23, 2009, 10:03 PM


        However, recently other people are working on psyco.... so if
        they get funded for 64bit work... it might happen too.

        There's a new release of psyco coming out soon.

        cu,



        On Fri, Apr 24, 2009 at 12:36 PM, Daniel Jo <ostsol@xxxxxxxxx
        <http://mc/compose?to=ostsol@xxxxxxxxx>> wrote:

            As is mentioned in Psyco's guide. . .

            http://psyco.sourceforge.net/psycoguide/req.html
            <http://psyco.sourceforge.net/psycoguide/req..html>

            . .. . the author has no intention of updating Psyco to
            support 64 bit
            architectures.  For 64 bit OSs, you're stuck with other
            methods of
            optimisation.

            -Daniel

            On Thu, Apr 23, 2009 at 5:02 PM, Yanom Mobis
            <yanom@xxxxxxxxxxxxxx
            <http://mc/compose?to=yanom@xxxxxxxxxxxxxx>> wrote:
            > ya... it doesn't work
            >
            > --- On Wed, 4/22/09, Ian Mallett <geometrian@xxxxxxxxx
            <http://mc/compose?to=geometrian@xxxxxxxxx>> wrote:
            >
            > From: Ian Mallett <geometrian@xxxxxxxxx
            <http://mc/compose?to=geometrian@xxxxxxxxx>>
            > Subject: Re: [pygame] C/C++ and Python
            > To: pygame-users@xxxxxxxx
            <http://mc/compose?to=pygame-users@xxxxxxxx>
            > Date: Wednesday, April 22, 2009, 10:51 PM
            >
            > Psyco working?  It looks like it might not work on 64
            bit machines.  The
            > Psyco Intro says Psyco "only runs on Intel
            386-compatible processors", and
            > Wikipedia says that's 32 bit.  I could be wrong, but
            that might mean it
            > won't work.
            >
            > Regardless of what other packages you're using, (and
            assuming it's
            > compatible) you can use Psyco pretty easily:
            >
            > import psyco
            > psyco.full()
            >
            > At the top of your main file..
            >
            > Ian
            >
            >

            <div><br></div>