From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: whitequark <whitequark@whitequark.org>
Cc: Raoul Duke <raould@gmail.com>, OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] whither portability?
Date: Sat, 26 Sep 2015 18:21:49 +0200 [thread overview]
Message-ID: <1443284509.4442.23.camel@e130.lan.sumadev.de> (raw)
In-Reply-To: <e362fc9688066d13af18b848035e02de@whitequark.org>
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
Am Samstag, den 26.09.2015, 18:59 +0300 schrieb whitequark:
> With opam-android, the workflow is exactly identical to building any
> regular OCaml project, with the difference that the final binary
> produced
> is a .o or .so file that you can use as any other C library in
> your Android project; the Android cross-toolchain is just another switch
> in opam.
>
> I don't know how it works for iOS but it is almost certainly possible
> to achieve the same level of convenience.
On iOS you just use ocamlopt -output-obj to get a .o and link this into
your app together with libasmrun.a (apps cannot use shared libraries on
iOS so creating an .so is pointless). You can also create a standalone
executable, but this is only useful for jailbroken devices.
Note that even bytecode works on the device. Maybe useful for a toploop
on the go?
Gerd
--
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de
My OCaml site: http://www.camlcity.org
Contact details: http://www.camlcity.org/contact.html
Company homepage: http://www.gerd-stolpmann.de
------------------------------------------------------------
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-09-26 16:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-25 21:13 Raoul Duke
2015-09-26 9:28 ` Gerd Stolpmann
2015-09-26 12:48 ` Raoul Duke
2015-09-26 15:59 ` whitequark
2015-09-26 16:21 ` Gerd Stolpmann [this message]
2015-09-26 23:29 ` Raoul Duke
2015-09-27 0:47 ` Spiros Eliopoulos
2015-09-27 0:51 ` Raoul Duke
2015-09-27 0:20 ` Oliver Bandel
2015-09-27 0:27 ` Yotam Barnoy
2015-09-27 14:10 ` Oliver Bandel
2015-09-27 0:55 ` Raoul Duke
2015-09-27 14:33 ` whitequark
2015-09-27 17:19 ` Raoul Duke
2015-09-27 17:41 ` whitequark
2015-09-26 17:10 ` Gerd Stolpmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443284509.4442.23.camel@e130.lan.sumadev.de \
--to=info@gerd-stolpmann.de \
--cc=caml-list@inria.fr \
--cc=raould@gmail.com \
--cc=whitequark@whitequark.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox