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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 80584BB81 for ; Wed, 11 Jan 2006 18:33:06 +0100 (CET) Received: from mail2.icu.de (prosystec.info [81.169.181.48]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0BHX4Fx025661 for ; Wed, 11 Jan 2006 18:33:05 +0100 Received: from skysurfer (84.158.69.222) by mail2.icu.de with MERCUR Mailserver (v5.00.17 NjYtMjk0NC00MzY3) for ; Wed, 11 Jan 2006 18:32:44 +0100 From: To: Subject: Crosscompiling for mipsel cpu's ? Date: Wed, 11 Jan 2006 18:32:46 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C616DD.6B571350" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcYW1QkdDi4F+2wRT/eORhqmEdA56w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-Id: <0601111832445900@mail2.icu.de> Reply-To: steve@wgco.de X-j-chkmail-Score: MSGID : 43C54150.000 on concorde : j-chkmail score : X : 0/20 1 X-Miltered: at concorde with ID 43C54150.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 powerpc:01 ocaml:01 powerpc:01 iym:98 compiling:02 compiling:02 arial:96 arial:96 tutorials:03 tutorials:03 patch:07 patch:07 multi-part:90 internet:87 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE, MSGID_RANDY,NO_REAL_NAME autolearn=disabled version=3.0.3 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C616DD.6B571350 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I=92m trying to port an Ocaml program to a mipsel platform. =20 I searched the internet for tutorials but the only thing I found was a = patch for arm and powerpc. =20 Can anyone give me some information / help to build Ocaml for cross compiling to mipsel? =20 =20 Best regards=20 Steve=20 =20 ------=_NextPart_000_0000_01C616DD.6B571350 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m trying to port an Ocaml program to a = mipsel platform.

 

I searched the internet for tutorials but the = only thing I found was a patch for arm and = powerpc.

 

Can anyone give me some information / help to = build Ocaml for cross compiling to mipsel?

 

 

Best regards

Steve

 

------=_NextPart_000_0000_01C616DD.6B571350-- 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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 7BBA9BB81 for ; Thu, 12 Jan 2006 04:09:10 +0100 (CET) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id k0C399Wg001311 for ; Thu, 12 Jan 2006 04:09:10 +0100 Received: from c-24-3-154-200.hsd1.pa.comcast.net ([24.3.154.200]) by ux9.sp.cs.cmu.edu id aa19885; 11 Jan 2006 22:08 EST Received: from ecc by stratocaster.home with local (Exim 4.60) (envelope-from ) id 1Ewsp6-0006Kz-J8 for caml-list@yquem.inria.fr; Wed, 11 Jan 2006 22:08:24 -0500 Date: Wed, 11 Jan 2006 22:08:24 -0500 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Crosscompiling for mipsel cpu's ? Message-ID: <20060112030824.GA24329@localhost> Mail-Followup-To: caml-list@yquem.inria.fr References: <0601111832445900@mail2.icu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0601111832445900@mail2.icu.de> User-Agent: Mutt/1.5.11 From: Eric Cooper X-Miltered: at concorde with ID 43C5C855.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 powerpc:01 ocaml:01 posts:01 powerpc:01 compilers:01 mips:01 off-list:01 wrote:01 hacks:01 dynamically:01 compiling:02 tutorials:03 probably:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Wed, Jan 11, 2006 at 06:32:46PM +0100, steve@wgco.de wrote: > I'm trying to port an Ocaml program to a mipsel platform. > > I searched the internet for tutorials but the only thing I found was > a patch for arm and powerpc. > > Can anyone give me some information / help to build Ocaml for cross > compiling to mipsel? You probably found my posts about the arm and powerpc cross compilers. Basically, it involves hard-coding the architectural features that are normally discovered dynamically by the configure script, plus a few other hacks. I would probably start with the arm version and adapt it for mips. You can contact me off-list if you try this and need help. -- Eric Cooper e c c @ c m u . e d u 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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 87087BB81 for ; Thu, 12 Jan 2006 04:27:55 +0100 (CET) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0C3Rs0W003194 for ; Thu, 12 Jan 2006 04:27:55 +0100 Received: from pd3mr8so.prod.shaw.ca (pd3mr8so-qfe3.prod.shaw.ca [10.0.141.24]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ISY004ZPMWLZ1E0@l-daemon> for caml-list@yquem.inria.fr; Wed, 11 Jan 2006 20:26:46 -0700 (MST) Received: from pn2ml3so.prod.shaw.ca ([10.0.121.147]) by pd3mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ISY001DAMWLT6F0@pd3mr8so.prod.shaw.ca> for caml-list@yquem.inria.fr; Wed, 11 Jan 2006 20:26:45 -0700 (MST) Received: from glek.net ([24.108.230.73]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ISY00G99MWLU811@l-daemon> for caml-list@yquem.inria.fr; Wed, 11 Jan 2006 20:26:45 -0700 (MST) Received: from [127.0.0.1] (daemon [192.168.0.2]) by glek.net (Postfix) with ESMTP id E69BF4AFABA for ; Wed, 11 Jan 2006 19:26:44 -0800 (PST) Date: Thu, 12 Jan 2006 03:26:36 +0000 From: Taras Glek Subject: Re: [Caml-list] Crosscompiling for mipsel cpu's ? In-reply-to: <0601111832445900@mail2.icu.de> To: caml-list@yquem.inria.fr Message-id: <43C5CC6C.5070805@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en References: <0601111832445900@mail2.icu.de> User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051010) X-Miltered: at concorde with ID 43C5CCBA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 compiler:01 byterun:01 bytecc:01 runtime:01 sml:01 powerpc:01 caml-list:01 beginner's:01 beginners:01 bug:01 unix:01 wrote:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Hi Steve, I run an ocaml program on my mipsel wrt54gs router. OCaml was not setup for crosscompiling, but it was quite easy to crosscompile the interpreter. Just configure ocaml normally(using the host compiler), then go to byterun directory and do "make BYTECC=gcc-mipsel-blabla". The harder part was compiling the Unix library, but I did succeed. Now I have an ocaml runtime on my wireless router taking up just over 500K including my application. Just try doing that in Java or even SML. Taras steve@wgco.de wrote: > Hi, > > I’m trying to port an Ocaml program to a mipsel platform. > > I searched the internet for tutorials but the only thing I found was a > patch for arm and powerpc. > > Can anyone give me some information / help to build Ocaml for cross > compiling to mipsel? > > Best regards > > Steve > >------------------------------------------------------------------------ > >_______________________________________________ >Caml-list mailing list. Subscription management: >http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list >Archives: http://caml.inria.fr >Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >Bug reports: http://caml.inria.fr/bin/caml-bugs > >