caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] how to split up a Caml float into its component bytes
@ 2001-11-09  3:29 Rafael 'Dido' Sevilla
  2001-11-09 11:05 ` Thorsten Ohl
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rafael 'Dido' Sevilla @ 2001-11-09  3:29 UTC (permalink / raw)
  To: Caml List


I've been writing a byte compiler for a small language using Objective
Caml, and now am thinking about incorporating floating point support
into the language.  I'm wondering how I would convert a floating point
number in OCaml (which I hope I am safe in assuming is IEEE-754) into
its equivalent bytes.  I need it to be able to output bytecode
instructions that will load floating point constants into the virtual
machine.  In C this is fairly trivial to do; not sure how to do it in
OCaml.

-- 
Rafael R. Sevilla <sevillar@team.ph.inter.net>   +63(2)   8177746 ext. 8311
Programmer, Inter.Net Philippines                +63(917) 4458925
http://dido.engr.internet.org.ph/                OpenPGP Key ID: 0x5CDA17D8
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2001-11-09 17:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-09  3:29 [Caml-list] how to split up a Caml float into its component bytes Rafael 'Dido' Sevilla
2001-11-09 11:05 ` Thorsten Ohl
2001-11-09 12:18   ` Xavier Leroy
2001-11-09 13:32     ` Thorsten Ohl
2001-11-09 11:28 ` [Caml-list] how to split up a Caml float into its component bytes malc
2001-11-09 17:09 ` Ken Rose

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).