You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4782 Reporter: n8gray Status: closed (set by @mshinwell on 2016-12-07T13:16:37Z) Resolution: duplicate Priority: normal Severity: feature Version: 3.11.0 Category: ~DO NOT USE (was: OCaml general) Tags: OSX, iPhone, arm, Apple
Bug description
I would really like to use OCaml in my App Store applications for the iPhone/iPod Touch platform. It appears that Apple uses a different ABI than the OCaml ARM backend and some changes are necessary to the code generator and runtime. If Apple's ABI is documented somewhere I haven't been able to find it. However, Jeffrey Scofield described a solution that works for single-threaded OCaml code, so perhaps the changes aren't overly difficult.
Additional information
This website describes a procedure for building a version of 3.10.2 that works on jailbroken iPhones. This is not suitable for commercial apps though.
configure-libetpan is a script I used for configuring and building libetpan, an e-mail library, on both the iPhone simulator (x86) and the iPhone itself (arm). I'm including it here as an example of how to use Apple's gcc on the command line for those platforms.
Original bug ID: 4782
Reporter: n8gray
Status: closed (set by @mshinwell on 2016-12-07T13:16:37Z)
Resolution: duplicate
Priority: normal
Severity: feature
Version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)
Tags: OSX, iPhone, arm, Apple
Bug description
I would really like to use OCaml in my App Store applications for the iPhone/iPod Touch platform. It appears that Apple uses a different ABI than the OCaml ARM backend and some changes are necessary to the code generator and runtime. If Apple's ABI is documented somewhere I haven't been able to find it. However, Jeffrey Scofield described a solution that works for single-threaded OCaml code, so perhaps the changes aren't overly difficult.
Additional information
This website describes a procedure for building a version of 3.10.2 that works on jailbroken iPhones. This is not suitable for commercial apps though.
http://web.yl.is.s.u-tokyo.ac.jp/~tosh/ocaml-on-iphone/
I am attaching Jeffrey Scofield's patched arm.S that he reports as working with single-threaded OCaml code.
The changes that he reports include:
File attachments
The text was updated successfully, but these errors were encountered: