From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id A0EC3BC37 for ; Thu, 26 Nov 2009 02:40:46 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8AAD5rDUvYFZXcmWdsb2JhbACcIAEBAQEBCAsKBxO4aYQyBI0g X-IronPort-AV: E=Sophos;i="4.47,289,1257116400"; d="scan'208";a="37436644" Received: from mailout1.radiant.net ([216.21.149.220]) by mail2-smtp-roc.national.inria.fr with ESMTP; 26 Nov 2009 02:40:45 +0100 Received: from Alonzo.local ([209.207.95.169]) by mailout1.radiant.net (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) with ESMTP id <0KTP00AGS0F5K480@mailout1.radiant.net> for caml-list@inria.fr; Wed, 25 Nov 2009 17:35:29 -0800 (PST) Received: by Alonzo.local (Postfix, from userid 501) id B8E202C65F6; Wed, 25 Nov 2009 17:40:43 -0800 (PST) Date: Wed, 25 Nov 2009 17:40:43 -0800 From: Jeffrey Scofield Subject: Re: iPhone development In-reply-to: <4AEA687E-463B-4F90-BFDE-12283F0C3738@cs.princeton.edu> To: Yitzhak Mandelbaum Cc: Caml-list List Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <4AEA687E-463B-4F90-BFDE-12283F0C3738@cs.princeton.edu> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) X-Spam: no; 0.00; yitzhak:01 mandelbaum:01 ocaml:01 ocaml:01 compilation:01 3.0:98 cocoa:98 wrote:01 writes:01 compiling:02 patches:03 patches:03 somewhat:05 long:06 interface:06 Yitzhak Mandelbaum writes: > Back in May there was a brief discussion about developing for the > iPhone in OCaml. Does anyone from that discussion, or anyone else, > have any updates on the process/experience? Greetings. We're nearing completion of our first OCaml iPhone app. It's been fantastic coding the app in OCaml. But on the other hand, there's a lot of work to make that possible. In the long term, however, I expect it will turn out to have been a great decision. With Apple's release of iPhoneOS 3.0 we found that our previous (somewhat hackish) patches were no longer working. We have a new set of patches to OCaml 3.10.2 that adopt the OCaml 3.12 register assignments for ARM, and are a little more properly integrated with the OCaml code generator. In particular, the register assignments (as in OCaml 3.12) avoid use of registers reserved to the OS. We can report that this works perfectly under both iPhoneOS 2.2.1 and iPhoneOS 3.0. So things are looking good for the OCaml 3.12 release as a basis for cross compilation to the iPhone. > Some specific questions: > > 1. Does anyone know of any open-source code that helps to interface > OCaml with Cocoa? No, sorry. We wrote our own code to do this. > 2. In May, Jeff Scofield posted a patch to 3.10.2 for cross compiling > to the arm processor. What about 3.11.x? Since the ARM code generator is completely revamped for OCaml 3.12 we are currently planning to skip the 3.11 release. Regards, Jeff Scofield Seattle