Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging a Java bus error



Bill Janssen wrote:

I'd like to run 64-bit (twice as fast running this code, for one thing),
but I'm planning on running this code using JCC as part of a Python
program, together with PyLucene, and I'm not sure that's possible. The
Apple Python, I believe, is 32-bit. I may have to build my own Python.

If you mean "JCC, a Java to C compiler", can you just make the C code run as a separate process? If so, then you can compile it for x86_64 and run it as native 64-bit. I assume Python can launch sub- processes and wait for them to exit, send signals, pipe stdio, etc. If so, there's no particular reason that a 32-bit Python can't launch a 64-bit child process that does the image-processing. The parent can even specify which code it wants, see Leopard's 'man arch'.


I'm not sure how PyLucene would fit into that, but if it's resident in the python 32-bit process, then most likely it's your code that coordinates it all.

If you mean something else by JCC, please explain the constraint. You might still want to arrange things to run a 64-bit java sub- process for image-processing. It could be simpler than building a 64- bit python, but YMMV.

You're right about 32-bit python on Leopard:
  file `which python`

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.