Commit 74e366c2 authored by Marius Gerbershagen's avatar Marius Gerbershagen
Browse files

INSTALL: update iOS build instructions

Apparently the bdwgc workaround is no longer needed
parent 2cac9642
...@@ -70,7 +70,7 @@ MacPort command: ...@@ -70,7 +70,7 @@ MacPort command:
Hint provided by Pascal J. Bourguignon. Hint provided by Pascal J. Bourguignon.
* Cross-compile for the iOS platform * Cross-compile for the iOS platform (needs Xcode 11 or higher)
1. Build the host ECL 1. Build the host ECL
#+BEGIN_SRC shell-script #+BEGIN_SRC shell-script
./configure --prefix=`pwd`/ecl-iOS-host --disable-c99complex ./configure --prefix=`pwd`/ecl-iOS-host --disable-c99complex
...@@ -110,17 +110,3 @@ Hint provided by Pascal J. Bourguignon. ...@@ -110,17 +110,3 @@ Hint provided by Pascal J. Bourguignon.
#+END_SRC #+END_SRC
4. Library and assets in the ecl-iOS directory are ready to run on 4. Library and assets in the ecl-iOS directory are ready to run on
the iOS system. the iOS system.
** Using ECL on iOS
The Boehm-Demers-Weiser garbage collector cannot find the stack base
automatically on iOS. Therefore, this has to be specified manually. In
the main function, before calling cl_boot, add e.g. (see the garbage
collector documentation for more details):
#+BEGIN_SRC C
const int size = 256;
char* ecl_argv[size];
GC_allow_register_threads();
GC_register_my_thread((const struct GC_stack_base*)ecl_argv);
GC_stackbottom = (char*)(ecl_argv + size - 1);
#+END_SRC
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment