• Optimization difference between C and C++

    B_Cartier
    B_Cartier

    I  noticed a optimization difference between compiling a simple source code with ARM GCC in C and C++. The C++ version seems to optimize a lot less stack usage.

    To demonstrate this problem, I compiled the following code with arm-none-eabi-gcc version gcc…

    • 11 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Android NDK options: What compiler flags should I use for my libraries and apps to get the best performance across the widest range of SoCs?

    Matthew Du Puy
    Matthew Du Puy

    Compiler options is one of those subjects that can get decidedly more complicated as you descend the rabbit hole. Undoubtedly, developers using or creating C/C++/Assembly libraries in Android are seeking to compile the most optimal binary for as many…

    • Answered
    • over 6 years ago
    • Open Source Software and Platforms
    • Android forum