[plt-dev] Are ZOs cross platform?

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Apr 2 12:05:49 EDT 2009

On Apr  2, Matthew Flatt wrote:
> At Thu, 2 Apr 2009 08:02:59 -0600, Jay McCarthy wrote:
> > I know they are not cross version, but will a zo compiled on OS X
> > work on Linux?
> Yes.
> > What if the OS X machine is PPC and linux is X86?
> No problem.
> In fact, the .zos included in all PLT Scheme distributions, independent
> of the platform, are built on an x86_64 Linux machine.

But note that there is nothing that stands in the way of macros from
expanding to platform-specific code -- and that will make the
resulting zo files platform dependent.  This is why things that
depend on `system-type' are usually found in runtime code, not in
macros.  In the PLT tree there is currently one exception: the
collects/sgl/compiled/gl-info_ss.zo file contains platform-specific
information about opengl.

And BTW, a good number of years ago (I don't remember when, but well
before I came in) PLT was distributed as a single tree with different
binaries for the different platforms.  I continue to use that
organization today -- I basically have a single tree that I use
everywhere, even on Windows.  (I have a script that I run after every
release, which collects the installers, puts the binaries in place and
patch them to find the collection tree in ../../collects.)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the dev mailing list.