Julian will look into this.  How badly is it hurting you?
He's deep in the native code generator just now, so an instant
response is unlikely.

Simon

| -----Original Message-----
| From: Jan Kort [mailto:[EMAIL PROTECTED]]
| Sent: 24 January 2000 16:57
| To: [EMAIL PROTECTED]
| Subject: FFI on sparc
| 
| 
| Hi,
| 
| I'm using the FFI on a sparc. Everything works fine except
| when I return a float or double from C to Haskell. My config is:
| 
| SunOS 5.6
| cpu0: SUNW,UltraSPARC-IIi (upaid 0 impl 0x12 ver 0x12 clock 270 MHz)
| SUNW,m64B0 is /pci@1f,0/pci@1,1/SUNW,m64B@2
| stdout is </pci@1f,0/pci@1,1/SUNW,m64B@2> major <35> minor <0>
| SUNW,hme0: CheerIO 2.0 (Rev Id = c1) Found
| SUNW,hme0 is /pci@1f,0/pci@1,1/network@1,1
| SUNW,hme0: Using Internal Transceiver
| SUNW,hme0: 100 Mbps full-duplex Link Up
|                   Solaris 2.6 5/98 s297s_hw3smccDesktop_09 SPARC
|            Copyright 1998 Sun Microsystems, Inc.  All Rights Reserved.
|                            Assembled on 24 April 1998
| The Glorious Glasgow Haskell Compilation System, version 4.04,
| patchlevel 1
| egcs-2.91.66
| 
| The output of my program is:
| 
| check1 1.230000
| 1.342972116e9
| check2 1.230000
| 1.07293442e9
| check3 1.230000
| 1.3429812e9
| 
| I've attached the tarred sources.
| 
| Regards,
|   Jan
| 

Reply via email to