Kotlin Native integrates with LLVM, LLVM can targe...
# kotlin-native
d
Kotlin Native integrates with LLVM, LLVM can target the AVR microcontroller... size-wise, what is the chance of compiling (very simple) Kotlin for a target as small as an 8-bit AVR? Is there too much dependant bootstrap code even for the most simple 'hello world' or is this possible?
n
Not feasible (highly unlikely) to have Kotlin programs running on AVR based uCs. Code size for the telnet server Kotlin Native sample on Linux AMD64 is around 480 KB (incl Kotlin Native runtime and std lib), which will not fit into flash on a AVR uC. Modern ARM based uCs (ARM M3 and above) are feasible (in theory) although that will mainly depend on the amount of flash (ROM) available.
😔 1
Some of the STM32 ARM based uCs with at least 1MB flash are good candidates for porting Kotlin Native. Likely to be further opportunities to cut down on code size, which could make ARM based uCs with 512 KB flash feasible as well (in theory).
✅ 1
🙂 1