Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Cross-compiling OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christopher A. Watford <christopher.watford@g...>
Subject: Re: [Caml-list] Cross-compiling OCaml
Reply within,

>>>SNIP>>>
> Who ever said that cross-compilation support would only involve running
> a compiler on x86 Linux to target x86 Windows?  It could involve
> running a compiler on x86 Linux to target arm Zaurus, or m68k Linux, or
> x86 FreeBSD, or amd64 Linux.  Or running a compiler on PowerPC NetBSD
> to target Alpha NetBSD.  Or whatever else.

I think this point needs to be streesed. Like John is trying to say,
people are asking for CROSS-ARCHITECHTURE compiling, not CROSS-API.
You can't expect to just plop down code and expect the API to be
supported by your machine/compiler, however, you should be able to
retarget the compiler for any architecture that may support it.

>>>SNIP>>>
> I think that offering a simple tarball with the source is just fine.

Its more out of respect for the operating system to include the source
as a zip file for windows users. Just as you might include an rpm for
Red Hat or an ebuild for Gentoo. I would agree that a .tgz file
'should' be the lowest common denominator, but hey, you can't always
get what you want.

> Oh please, tell us what is so wrong with posting the source code easily
> accessible as a tarball.  Is it that Windows people can't figure out
> how to use Winzip?

Nah its 'cause they don't need to have winzip installed anymore. XP/2k
have compressed folder support built in, sort of takes away the need
for WinZip. Though John is right, if you're releasing the source to an
OCaml Library, that implies your users should be damn well smart
enough to open a tarball.

> John Goerzen
> Author, Foundations of Python Network Programming
> http://www.complete.org/pynet

I think this thread has gone horribly offtopic with gripes more about
CROSS-API support rather than CROSS-ARCHITECTURE. Hell, because of the
raw differences in API between Linux and Win32, I think it would be
harder to target Win32 from Linux. But, since Win32 tends to have like
90%-ish support for POSIX/stdlibc/etc, I think it would be easier to
have the Win32 compiler target Linux images.

However, like any good programmer, you must take into account
programming in a cross platform/architecture manner (in C I tend to
use ifdef's, yeah ugly but whatever) in order to even have a glimpse
of a hope with getting it to work across the 3 major regions (win32,
*nix/un*x/bsd, osx; I'm leaving out OpenVMS etc...).

-- 
Christopher A. Watford
christopher.watford@gmail.com
http://dorm.tunkeymicket.com

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners