Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it justified to use C/C++ for iOS/Android cross platform code in this case?

I am planning to write a mobile application (iOS and Android) where there is a lot of image recognition processing.

Is it a good solution to write the image recognition code in C or C++ to reuse it in both platforms ?

Will there be a lot platform specific C/C++ code that makes writing and maintaining it unjustified ?

Note: This application is based on image recognition and the biggest part of the code is for image recognition.

like image 879
zercvb Avatar asked Oct 11 '22 17:10

zercvb


1 Answers

I would say yes. This is the kind of thing I believe the Android-NDK is best used for and since straight C compiles fine from OBJ-C, there could be a lot of code reused between the two platforms.

like image 108
Maximus Avatar answered Oct 15 '22 10:10

Maximus