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 LAA18163; Sun, 13 Oct 2002 11:28:19 +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 LAA18044 for ; Sun, 13 Oct 2002 11:28:18 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9D9SG518981; Sun, 13 Oct 2002 11:28:16 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA17900; Sun, 13 Oct 2002 11:28:15 +0200 (MET DST) Date: Sun, 13 Oct 2002 11:28:15 +0200 From: Xavier Leroy To: John Carr Cc: Alessandro Baretta , Ocaml Subject: Re: [Caml-list] Runtime overflow and what to do Message-ID: <20021013112815.K13771@pauillac.inria.fr> References: <3DA6A4ED.5050700@baretta.com> <200210121613.MAA27433@psi-phi.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200210121613.MAA27433@psi-phi.mit.edu>; from jfc@MIT.EDU on Sat, Oct 12, 2002 at 12:13:32PM -0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > OCaml supports 32 and 64 bit integers. Is it possible to detect at > compile time the size of the maximum integer? What about: echo "print_int Sys.word_size" > /tmp/caml$$ WORDSIZE=`ocaml /tmp/caml$$` rm -f /tmp/caml$$ WORDSIZE will be set to 32 or 64, depending on the platform. - Xavier Leroy ------------------- 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