Re: Compiling ctypes (and Python) for Windows Itanium [SEC=PERSONAL]

"Andrew MacIntyre" <[email protected]>
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
[apogogies for the top post - I'm still coming to terms with Outlook2007
L]

 

Start at http://sourceware.org/libffi/

 

You'll probably have to ask questions on the libffi-discuss mailing
list.  I note that libffi 3.0.9 has 

changes in the x86 support for 64bit Windows on AMD64.  I would
recommend downloading 

the 3.0.9 sources which might give you some more ideas.

 

From my own experience (on an x86 platform not supported by the libffi
sources), you will 

have to come to terms with the rudiments of IA64 assembly to get this to
work properly as 

understanding the details of how calls are set up and returns made for a
particular ABI helps 

enormously.

 

One of the ways you can assemble some of the necessary bits is to
examine how a compiler 

actually constructs the calls and then copy and paste the necessary bits
of generated 

assembly in to your interface file, which I suspect is why the Linux
code looks very compiler 

generated.  The files in the test suite are a good starting point in
evaluating what needs to be 

supported.

 

-------------------------> "These thoughts are mine alone!" <---------

Andrew MacIntyre           Operations Branch

tel:   +61 2 6219 5356     Communications Infrastructure Division

fax:   +61 2 6253 3277     Australian Communications & Media Authority

email: [email protected]
<mailto:[email protected]>
http://www.acma.gov.au/ <http://www.acma.gov.au/> 

 

From: Guy Rozendorn [mailto:[email protected]] 
Sent: Wednesday, 27 January 2010 6:16 AM
To: [email protected]
Subject: [ctypes-users] Compiling ctypes (and Python) for Windows
Itanium

 

Hi all,

 

I am trying to build Python 2.6 for Windows Itanium.

I have the IA64 MSVC compiler set up, and so far I managed to build the
entire Python PCBuild project, except for ctypes.

 

The project of course does not build on its own for IA64 on Windows,
since its missing the appropriate assembly for the libffi part.

Since we're not familiar at all with itanium assembly, we tried to
workaround it:

*         We looked at the existing windows linux assemblies in the
project, and tried to understand what they do

*         We wrote some in C that should do pretty much the same, and
compiled ctypes with that

*         It compiled without a too much hassle, but it didn't work out
(python crashes when using ctypes on itanium)

 

So, my questions are:

*         Does someone successfully compiled ctypes for Windows IA64? Or
have another lead for us?

*         It looks like that a compiler wrote the linux-ia64 assembly,
and not a human being. But we didn't find the original C code of that in
the project. We hope that if we find the original C code, we can hack it
a bit to also compile and work on windows-ia64.

o    Does someone know who the linux-ia64 assembly code was generated?
From which source? And who wrote it?

 

 

Any help would be greatly appreciated!

 

Thanks,

 

- Guy

 

 


If you have received this email in error, please notify the sender immediately and erase all copies of the email and any attachments to it. The information contained in this email and any attachments may be private, confidential and legally privileged or the subject of copyright. If you are not the addressee it may be illegal to review, disclose, use, forward, or distribute this email and/or its contents.
 
Unless otherwise specified, the information in the email and any attachments is intended as a guide only and should not be relied upon as legal or technical advice or regarded as a substitute for legal or technical advice in individual cases. Opinions contained in this email or any of its attachments do not necessarily reflect the opinions of ACMA.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com

_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.