severity 263020 wishlist
tags 263020 wontfix
thanks

> On Mon, Aug 02, 2004 at 08:34:42PM +0200, Falk Hueffner wrote:
> > Package: ocaml-nox
> > Version: 3.08.0-2
> > Severity: normal
> > File: /usr/bin/ocamlopt
> > 
> > % cat test.ml && ocamlopt -c test.ml && objdump -d test.o  
> > let f () = if Sys.word_size = 64 then 1 else 0;;
> >                                  
> > test.o:     file format elf64-alpha
> > 
> > Disassembly of section .text:
> > 
> > 0000000000000000 <camlTest__f_57>:
> >    0:   00 00 bb 27     ldah    gp,0(t12)
> >    4:   00 00 bd 23     lda     gp,0(gp)
> >    8:   00 00 7d a4     ldq     t2,0(gp)
> >    c:   20 00 43 a4     ldq     t1,32(t2)
> >   10:   b9 35 50 40     cmpeq   t1,0x81,t11
> >   14:   02 00 20 e7     beq     t11,20 <camlTest__f_57+0x20>
> >   18:   03 00 1f 20     lda     v0,3
> >   1c:   01 80 fa 6b     ret
> >   20:   01 00 1f 20     lda     v0,1
> >   24:   01 80 fa 6b     ret
> >   28:   1f 04 ff 47     nop     
> >   2c:   00 00 fe 2f     unop    
> > 
> > This makes it basically impossible to optimize for 32 or 64 bit.

On Mon, Aug  2, 2004 at 12:18:38 +0200, Sven Luther wrote:
> 
> Mmm, i am sending this to the ocaml upstream BTS, since i don't think i can do
> real much about this, especially as i don't speak alpha assembly.
> 
Upstream's answer to this bug report was:
"With bytecode, Sys.word_size is really a run-time variable (can compile on 32
bits and execute on 32 or 64 bits).  No easy way to turn it into a compile-time
constant just for native-code compilation."
See http://pauillac.inria.fr/bin/caml-bugs/wish%20not%20granted?id=3034

I'm thus tagging this bug wontfix.

Regards,
Julien Cristau


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to