How can I use the C backend? #770
Replies: 4 comments 5 replies
-
There's no documentation for C backend. You can look at examples, here and here. If you read documentation, you can notice some mentions of C backend here. The best information about C backend is source code, don't afraid to read it. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to disable unicode support? So that uchar.h and his friends are not needed? How big is the relience on the c standard library? |
Beta Was this translation helpful? Give feedback.
-
No, there's no way do disable unicode support. I'm not sure what you call "big" and how to measure reliance. TeaVM, as well as any other JVM, relies no some platform-specific stuff, in case of TeaVM it's not just libc, but also some parts of POSIX and Windows API (like those to handle date/time and to manage memory). Actually, TeaVM was only tested with Windows and Linux. I think it can also work in MacOS and iOS (which are also POSIX) after a couple of small ifdefs, but since I don't have any Apple device, I can't patch relevant parts of runtime. You can look at TeaVM runtime yourself and decide if it's big and whether you able to patch it for particular platform. Just look for |
Beta Was this translation helpful? Give feedback.
-
Kinda if the N64 counts as an embedded device. I just Straight thought that teavm would "just" translate Java to C, but that was a fulish assumption. But I will play around with it and look what I am able to accomplish. |
Beta Was this translation helpful? Give feedback.
-
Hi,
which steps I have to undertake to generate C code from my Java source code?
pizzadox9999
Beta Was this translation helpful? Give feedback.
All reactions