Hello first of all. As it is written in the subject, do we have the opportunity to code with Kotlin/Native with Arduino (eg Arduino Uno) or if there is someone who has experience in this field, I would be very happy if they share it here. I would also like to add that there will be only Arduino board and the code will work on this board. If I can achieve this, I think I can achieve most of the things I need at the basic level. Thanks in advance!
Only if your language is very compatible with Arduino. Starting with the compiler producing files compatible with the Arduino used linker and loader, and including the full binary interface to the Arduino framework and libraries. Or you implement all that yourself, for every target controller.
Yes, to a degree with limitations; future evolution may make it easier.
Can I program microcontrollers in Kotlin? - Stack Overflow
llvm-project/llvm/lib/Target/AVR at main · llvm/llvm-project · GitHub
Thanks for your answers guys. As you said, it may happen to some extent with restrictions and better things may come up in the future, but after asking the question, I continued to research and found that the AVR chipsets could not meet the system requirements for Kotlin/Native.
The chain of reasoning that goes:
- Kotlin/Native is compiled using LLVM
- LLVM now supports AVR
- an Arduino has an AVR processor
- Therefore an Arduino can support Kotlin/Native.
Is VERY bogus, By the same standard, an Arduino could run gcc, or linux.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.