Answer the question
In order to leave comments, you need to log in
Is it possible to write c/c++ code and compile it directly to android bytecode?
Apk file is an archive with everything that is in the program and the program itself in dex format, that is, the bytecode for the Dalvik Virtual Machine. Are there any compilers/libraries/programs for compiling C/C++ code directly into dex bytecode?
I apologize in advance for possible inaccuracies in the wording.
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/6439259/can-c-...
But why?
After all, there is a Native SDK on Android, if you really need C / C ++.
no, in pure C, .o files are obtained - an analogue of .dll under unix
, to access them from java, an intermediary file is used
; in principle, it looks like a regular Java class, but instead of the method code
, it is described that you need to switch to a binary file.
if you google "cross-platform development of mobile applications on c sharp"
https://habr.com/ru/post/188130/
You can write using an intermediary. For example, Xamarin will take care of the implementation of the
necessary wrappers. The price for this is in the additional app size.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question