From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA20977; Mon, 14 Oct 2002 13:02:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA19184 for ; Mon, 14 Oct 2002 13:02:53 +0200 (MET DST) Received: from yoda.planetinternet.be (anvers-smtp.planetinternet.be [195.95.30.152]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9EB2q504650 for ; Mon, 14 Oct 2002 13:02:52 +0200 (MET DST) Received: from janxp (u212-239-170-184.adsl.pi.be [212.239.170.184]) by yoda.planetinternet.be (Postfix) with ESMTP id 0010B3711C; Mon, 14 Oct 2002 13:02:45 +0200 (CEST) Message-ID: <008d01c27371$3de287f0$0100a8c0@janxp> From: "Scott J," To: "Jacques Garrigue" Cc: References: <200210121613.MAA27433@psi-phi.mit.edu><20021013112815.K13771@pauillac.inria.fr><4.3.2.7.2.20021013175437.032eb130@mail.d6.com> <20021014184615Q.garrigue@kurims.kyoto-u.ac.jp> Subject: Re: [Caml-list] Runtime overflow and what to do Date: Mon, 14 Oct 2002 13:02:46 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0089_01C27381.FDB66640" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0089_01C27381.FDB66640 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, I am following the discussion. But do not understand this. Is this a solution to eliminate overhead in integer arithmetic. Personnally I thought to try to capture the overflow status flag for the pentium processor on my Windows XP. Thx Scott ----- Original Message ----- From: Jacques Garrigue To: checker@d6.com Cc: caml-list@inria.fr Sent: Monday, October 14, 2002 11:46 AM Subject: Re: [Caml-list] Runtime overflow and what to do From: Chris Hecker > > echo "print_int Sys.word_size" > /tmp/caml$$ > > WORDSIZE=`ocaml /tmp/caml$$` > > rm -f /tmp/caml$$ > > We clearly need a "-eval" switch to ocaml, like perl's -e/n/p. :) The above can be reduced to one line, without temporary file. In fact, I feel more like we would need a "-silent" option, to get rid of prompts and types (this is already the default with scripts). echo "print_int Sys.word_size;;" | \ ocaml | grep "^# ." | sed -e "s/# //" -e "s/- :.*//" A shorter but more specific approach is echo "Sys.word_size;;" | ocaml | grep "# -" | sed -e "s/.*= //" Jacques Garrigue ------------------- 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 ------=_NextPart_000_0089_01C27381.FDB66640 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I am following the discussion. But do = not=20 understand this. Is this a solution to eliminate overhead in integer=20 arithmetic.
 
Personnally I thought to try to capture = the=20 overflow status flag for the pentium processor on my Windows = XP.
 
Thx
 
Scott
----- Original Message -----
From:=20 Jacques Garrigue =
Sent: Monday, October 14, 2002 = 11:46=20 AM
Subject: Re: [Caml-list] = Runtime overflow=20 and what to do

From: Chris Hecker <checker@d6.com>
>=20 >        echo "print_int = Sys.word_size"=20 > /tmp/caml$$
> = >        =20 WORDSIZE=3D`ocaml /tmp/caml$$`
>=20 >         rm -f = /tmp/caml$$
>=20
> We clearly need a "-eval" switch to ocaml, like perl's = -e/n/p. =20 :)

The above can be reduced to one line, without temporary = file.
In=20 fact, I feel more like we would need a "-silent" option, to get = rid
of=20 prompts and types (this is already the default with = scripts).

echo=20 "print_int Sys.word_size;;" | \
ocaml | grep "^# ." | sed -e "s/# = //" -e=20 "s/- :.*//"

A shorter but more specific approach is

echo = "Sys.word_size;;" | ocaml | grep "# -" | sed -e "s/.*=3D = //"

Jacques=20 Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr= =20 Archives: http://caml.inria.fr
Bug=20 reports: http://caml.inria.fr/bin/caml= -bugs=20 FAQ: http://caml.inria.fr/FAQ/
Begin= ner's=20 list: http://groups.yaho= o.com/group/ocaml_beginners ------=_NextPart_000_0089_01C27381.FDB66640-- ------------------- 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