Jay wrote:
> I'm porting some oddball software, and trying to get "every" platform, if I
> have hardware, and getting more hardware (but not a lot).
> So, regarding SPARC, my quick understanding is that:
>  OpenBSD has separate "pure" SPARC and SPARC64.
>  On SPARC64, gcc accepts -m32 and -m64 (I think),
>   defaults to -m64, usermode is "all" 64bit.
>  Linux has just SPARC, runs on either hardware, usermode is   mostly 32bit,
> gcc accepts -m32 and -m64, defaults to -m32.
>  So now, I'm going to have roughly the following ports:    SPARC32_LINUX
> (already working)    SPARC64_LINUX     SPARC32_OPENBSD     SPARC64_OPENBSD
> (and more NetBSD, OpenBSD, etc.)
> In the Linux case, this is two sets of binaries that run on one OS.Folks might
> chose 32 perhaps for size or speed or interop withcode that hasn't been ported
> to 64, whatever.
> So my question then is...well, you see, I only have SPARC64 hardwareand am
> unlikely to install SPARC32, though maybe.More so, I'm unlikely to acquire
> SPARC32 hardware, unless SPARC64can run SPARC32?
> So my question is, do OpenBSD/sparc binaries run on OpenBSD/sparc64?
...

On OpenBSD, OpenBSD/sparc and OpenBSD/sparc64 are treated as two
totally different platforms, with no processor or binary compatibility.

As for cross compiling..it is completely up to you to test the ability
of the (imperfect) compiler tools to do what you want.

Nick.

Reply via email to