Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Who has ever wanted to make native calls from Python ?

Highlighted
Valued Contributor

Who has ever wanted to make native calls from Python ?

Python V2.5/ctypes V1.0.3 passed all tests on HP-UX B.11.31 IA64 as well as its underneath libffi-3.0.9 library. Using Python/ctypes you can make any direct calls to native 32-bits libraries including your own native 32-bits libraries. Why 32 bits ? This is because Python 2.5 from http://hpux.connect.org.uk/ has not been built using the +DD64 HP-UX C compiler switch. Full information can be found at http://vouters.dyndns.org/tima/Unix-OpenVMS-libffi-libffi_ported_to_Itanium.html

With libffi-3.0.9 ported to IA64, you may as well get rid from any C/C++ Java/JNI library interfacing code instead using Java Native Access (Java/JNA), directly calling native code from Java. To port Java/JNA onto HP-UX B.11.31 IA64, you'll need to download http://vouters.dyndns.org/zip/jna-sources.tar.gz and add Java specific code for an HP-UX operating system. To ease your port, refer to the work already done for an OpenVMS operating system target.

Yours sincerely,
Philippe