caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* OCamlon 64 Bit-Sun compiled as 32-Bit
@ 2006-09-16 18:55 Oliver Bandel
  2006-09-16 19:55 ` [Caml-list] " Martin S. Weber
  2006-09-16 22:55 ` John Carr
  0 siblings, 2 replies; 6+ messages in thread
From: Oliver Bandel @ 2006-09-16 18:55 UTC (permalink / raw)
  To: caml-list

Hello,

in the project I'm working, I have todo Perl-Programming.
But in a free minute I compiled OCaml on the workstation.
The compilation was without problems, it seems.

But the ocaml-distri (3.09.2) compiled as 32-Bit.
I asked the admin, and he said, it's a 64-Bit workstation.


The first lines that I got from "prtdiag" are:

===================================================================
System Configuration:  Sun Microsystems  sun4u Sun Fire E4900
System clock frequency: 150 MHz
Memory size: 32768 Megabytes
===================================================================

Should I write a Bugmessage to the OCaml-Bugtracker?

Ciao,
   Oliver


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit
  2006-09-16 18:55 OCamlon 64 Bit-Sun compiled as 32-Bit Oliver Bandel
@ 2006-09-16 19:55 ` Martin S. Weber
  2006-09-16 20:00   ` Oliver Bandel
  2006-09-16 22:55 ` John Carr
  1 sibling, 1 reply; 6+ messages in thread
From: Martin S. Weber @ 2006-09-16 19:55 UTC (permalink / raw)
  To: Oliver Bandel; +Cc: caml-list

Moin Oliver,

On Sat, Sep 16, 2006 at 08:55:14PM +0200, Oliver Bandel wrote:
> Hello,
> 
> in the project I'm working, I have todo Perl-Programming.
> But in a free minute I compiled OCaml on the workstation.
> The compilation was without problems, it seems.
> 
> But the ocaml-distri (3.09.2) compiled as 32-Bit.
> I asked the admin, and he said, it's a 64-Bit workstation.
> 

This doesn't mean the compiler is set to generate 64bit objects
by default, iirc the solaris 8 boxes I worked on ran 64 bit on 
64 bit and nevertheless compiled stuff as 32bit. (yay).

See if you can pass a CPPFLAGS=-m64 to your compiler (gcc option,
if you're using sunpro pass the appropriate flag to the compiler
to enable/force 64bit compiling)...

I.e. no ocaml bug.

Maybe have a look at (gcc: gcc -dumpspecs which should among many
other things also tell you the default build/compile options...
E.g. on my sparc64, gcc tells me ...

*cpp_arch:
%{m32:%(cpp_arch32)} %{m64:%(cpp_arch64)} %{!m32:%{!m64:%(cpp_arch_default)}} 

(read as: passed m32? select cpp_arch32. passed m64? select cpp_arch64.
passed neither m32 nor m64 ? select cpp_arch_default.)

..and..

*cpp_arch32:


*cpp_arch64:
-D__arch64__

*cpp_arch_default:
-D__arch64__


)

Regards,

-Martin 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit
  2006-09-16 19:55 ` [Caml-list] " Martin S. Weber
@ 2006-09-16 20:00   ` Oliver Bandel
  2006-09-16 20:59     ` Martin S. Weber
  0 siblings, 1 reply; 6+ messages in thread
From: Oliver Bandel @ 2006-09-16 20:00 UTC (permalink / raw)
  To: caml-list

On Sat, Sep 16, 2006 at 09:55:45PM +0200, Martin S. Weber wrote:
> Moin Oliver,
> 
> On Sat, Sep 16, 2006 at 08:55:14PM +0200, Oliver Bandel wrote:
> > Hello,
> > 
> > in the project I'm working, I have todo Perl-Programming.
> > But in a free minute I compiled OCaml on the workstation.
> > The compilation was without problems, it seems.
> > 
> > But the ocaml-distri (3.09.2) compiled as 32-Bit.
> > I asked the admin, and he said, it's a 64-Bit workstation.
> > 
> 
> This doesn't mean the compiler is set to generate 64bit objects
> by default, iirc the solaris 8 boxes I worked on ran 64 bit on 
> 64 bit and nevertheless compiled stuff as 32bit. (yay).
> 
> See if you can pass a CPPFLAGS=-m64 to your compiler (gcc option,
> if you're using sunpro pass the appropriate flag to the compiler
> to enable/force 64bit compiling)...
[...]

I doubt setting gcc-Flags make sense, if this is not a flag,
that the ./configure-script inthe sources-directory accepts.

I hope there is such an 64-Bit-option in the configure-script,
if not, I think such flags could yield problems.

> 
> I.e. no ocaml bug.
> 

At least theconfigure-script did not find out that the machine
is a 64-Bit's machine. So at least the config-script could be
changed. (Or there is an 64-Bit-option, which I didn't checked,
because I thought, it will find it out by itself.


Ciao,
  Oliver



> Maybe have a look at (gcc: gcc -dumpspecs which should among many
> other things also tell you the default build/compile options...
> E.g. on my sparc64, gcc tells me ...
> 
> *cpp_arch:
> %{m32:%(cpp_arch32)} %{m64:%(cpp_arch64)} %{!m32:%{!m64:%(cpp_arch_default)}} 
> 
> (read as: passed m32? select cpp_arch32. passed m64? select cpp_arch64.
> passed neither m32 nor m64 ? select cpp_arch_default.)
> 
> ..and..
> 
> *cpp_arch32:
> 
> 
> *cpp_arch64:
> -D__arch64__
> 
> *cpp_arch_default:
> -D__arch64__
> 
> 
> )
> 
> Regards,
> 
> -Martin 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit
  2006-09-16 20:00   ` Oliver Bandel
@ 2006-09-16 20:59     ` Martin S. Weber
  0 siblings, 0 replies; 6+ messages in thread
From: Martin S. Weber @ 2006-09-16 20:59 UTC (permalink / raw)
  To: Oliver Bandel; +Cc: caml-list

Hoi & ugh.

On Sat, Sep 16, 2006 at 10:00:56PM +0200, Oliver Bandel wrote:
> On Sat, Sep 16, 2006 at 09:55:45PM +0200, Martin S. Weber wrote:
> > (...)
> > See if you can pass a CPPFLAGS=-m64 to your compiler (gcc option,
> > if you're using sunpro pass the appropriate flag to the compiler
> > to enable/force 64bit compiling)...
> [...]
> 
> I doubt setting gcc-Flags make sense, if this is not a flag,
> that the ./configure-script inthe sources-directory accepts.

My fault. I'm used to autoconf scripts, and setting the environment
variable 'CPPFLAGS' (C pre processor flags) will pass additional
flags to the C compiler. This doesn't seem to be an autoconf build
though, sorry.

What I said about code generation and the default setting of your
machine's host compiler remains true :)

> (...)
> At least theconfigure-script did not find out that the machine
> is a 64-Bit's machine. So at least the config-script could be
> changed. (Or there is an 64-Bit-option, which I didn't checked,
> because I thought, it will find it out by itself.

It did not find an 64bit env because your compiler by default
doesn't offer a 64bit env :)

Good luck ...

-Martin


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit
  2006-09-16 18:55 OCamlon 64 Bit-Sun compiled as 32-Bit Oliver Bandel
  2006-09-16 19:55 ` [Caml-list] " Martin S. Weber
@ 2006-09-16 22:55 ` John Carr
  2006-09-17  0:55   ` Shawn W
  1 sibling, 1 reply; 6+ messages in thread
From: John Carr @ 2006-09-16 22:55 UTC (permalink / raw)
  To: Oliver Bandel; +Cc: caml-list


INRIA does not support 64 bit native code on SPARC
because they do not have any such systems.  I have
a patch for version 3.09.1:

http://www.mit.edu/~jfc/ocaml-3.09.1-sparc64.tar.gz

Tk will not compile with this patch (this is a longstanding
problem that I intend to fix, but I want to fix it right
rather than accomodating the awful code generated for large
inner module initializers).

You may find 32 bit code to be adequate for your needs.

My program that uses Int32 and Int64 runs significantly
faster in 64 bit mode.  You can also expect floating point
to be faster.  Ordinary integer code is likely to be slower
because all the objects are bigger.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit
  2006-09-16 22:55 ` John Carr
@ 2006-09-17  0:55   ` Shawn W
  0 siblings, 0 replies; 6+ messages in thread
From: Shawn W @ 2006-09-17  0:55 UTC (permalink / raw)
  To: caml-list; +Cc: John Carr

John Carr wrote:
> INRIA does not support 64 bit native code on SPARC
> because they do not have any such systems.  I have
> a patch for version 3.09.1:
> 
 > http://www.mit.edu/~jfc/ocaml-3.09.1-sparc64.tar.gz
 >
 > Tk will not compile with this patch (this is a longstanding
 > problem that I intend to fix, but I want to fix it right
 > rather than accomodating the awful code generated for large
 > inner module initializers).

I picked up an old Ultra 5 the other day. Ocaml seems to work on it out 
of the box in the limited amount of use I've put it to so far, except 
for ocamlopt, which didn't build, dying trying to compile sparc.S with 
register-related errors. I'll try that patch tomorrow when I have time, 
see how it works outside of Solaris - I'm running NetBSD/sparc64 3.0.1.










^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-17  0:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-16 18:55 OCamlon 64 Bit-Sun compiled as 32-Bit Oliver Bandel
2006-09-16 19:55 ` [Caml-list] " Martin S. Weber
2006-09-16 20:00   ` Oliver Bandel
2006-09-16 20:59     ` Martin S. Weber
2006-09-16 22:55 ` John Carr
2006-09-17  0:55   ` Shawn W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).