From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: *** X-Spam-Status: No, score=3.4 required=5.0 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 92A20BC0B for ; Thu, 28 Dec 2006 12:42:08 +0100 (CET) Received: from bay0-omc3-s28.bay0.hotmail.com (bay0-omc3-s28.bay0.hotmail.com [65.54.246.228]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBSBg7pT005659 for ; Thu, 28 Dec 2006 12:42:08 +0100 Received: from hotmail.com ([65.54.169.29]) by bay0-omc3-s28.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 28 Dec 2006 03:42:06 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Dec 2006 03:42:06 -0800 Message-ID: Received: from 65.54.169.200 by by114fd.bay114.hotmail.msn.com with HTTP; Thu, 28 Dec 2006 11:42:04 GMT X-Originating-IP: [141.228.106.136] X-Originating-Email: [oversby@hotmail.com] X-Sender: oversby@hotmail.com In-Reply-To: <20061203110003.6804FBC6A@yquem.inria.fr> From: "Ian Oversby" To: caml-list@yquem.inria.fr Subject: Question on writing efficient Ocaml. Date: Thu, 28 Dec 2006 11:42:04 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 28 Dec 2006 11:42:06.0941 (UTC) FILETIME=[33A610D0:01C72A75] X-j-chkmail-Score: MSGID : 4593AD8F.001 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 4593AD8F.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlopt:01 -noassert:01 -unsafe:01 mingw:01 hotmail:97 hotmail:97 -ccopt:03 -ccopt:03 ian:03 ian:03 msn:95 compiled:04 problem:05 Hi, Apologies if this is the wrong forum in which to ask this question. Is there anywhere else more suitable? I've written some Ocaml code to solve the problem of placing 8 queens on a board so that none of them attack each-other. I've also written a C++ equivalent which is running much more quickly than the Ocaml. I assume I've made some basic errors with the Ocaml - does anyone have any suggestions as to what? The code is available here: http://curiousprogrammer.wordpress.com/2006/12/22/speed-comparison-plt-scheme-ocaml-and-c/ I compiled the Ocaml with the following command: ocamlopt -noassert -unsafe -ccopt -O3 -ccopt -fomit-frame-pointer q.ml -o q.exe This is running on Windows using the MinGW build of Ocaml. Thanks very much, Ian _________________________________________________________________ MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com