<@U092308M7> thanks. I mean on hardware without OS...
# kotlin-native
g
@orangy thanks. I mean on hardware without OS, some sort of 'kernel'. I can't find anything like that in his blog
👍 1
👏 1
n
gimlet: There was an attempt to get Kotlin Native ported to a uC (micro controller - https://github.com/JetBrains/kotlin-native/issues/458), however a brick wall was encountered (libffi doesn't support some Cortex M CPUs - https://github.com/JetBrains/kotlin-native/issues/458#issuecomment-293409748). 🙁
If Kotlin Native is ported to Cortex M CPUs then only the M7's and higher would work (in theory!). ☘️
o
@napperley note, that libffi is needed only to call vararg C functions, so if you can live without it - simple stubbing out in couple places will let you continue
n
I take it that involves modifying the build process to remove the link to libffi for the uC targets (eg Cortex M4)? By supporting C code that means any embedded C libraries that are available for hw access (depending on the target hw)?
o
One could just supply empty ffi library with stub implementation of functions we need, literally one or two