Re:Cosmopolitan v3.1
by KRAKRISMOTT on Sunday November 19, 2023 @09:08PM
(#38341289)
Does Cosmopolitan support Android yet? It would be nice to have an alternative to the NDK
[ Parent
| on HN ]
Re:Cosmopolitan v3.1
by stylepoints on Sunday November 19, 2023 @11:02PM
(#38342109)
If I am correct in my understanding of how it works, Linux versions should work on Android as well.
Re:Cosmopolitan v3.1
by KRAKRISMOTT on Monday November 20, 2023 @12:58AM
(#38343074)
Android is kind of a special child, it uses custom kernel modules like Binder (IPC framework) and Ashmem (Android's garbage collector/memory manager).
Re:Cosmopolitan v3.1
by matheusmoreira on Monday November 20, 2023 @01:42AM
(#38343507)
The Linux system calls used by cosmopolitan work fine on Android provided they aren't blocked by seccomp policy. Some of those blocks make sense, others not so much. Yesterday I discovered I could use all the stat variants but not statx.
I believe the features provided by standard C libraries are well covered by the set of allowed system calls.
Re:Cosmopolitan v3.1
by matheusmoreira on Monday November 20, 2023 @01:32AM
(#38343415)
Funny you mention that. A few weeks I tried building cosmopolitan inside a Termux environment but the makefile didn't like it. At the time I gave up and used my laptop because I was focused on developing a feature. I wonder if I could get it to work now.