Utilize Android NDK installations

NDK comes with a handful of compilers and this patch modifies gcc-explorer to utilize them.

Standalone invocations of toolchains inside NDK requires --sysroot
option to be set to a correct 'system/platform' directory inside NDK
however this isn't necessary for trivial compilations.

Tested with NDK r9c.

[1]:
https://android.googlesource.com/platform/ndk.git/+/master/docs/text/STANDALONE-TOOLCHAIN.text
2 files changed
tree: c0929d275435a4ea726b14c24ab285f9381393ba
  1. .gitignore
  2. LICENSE
  3. Makefile
  4. Notes.md
  5. README.md
  6. app.js
  7. c-preload/
  8. d/
  9. etc/
  10. examples/
  11. lib/
  12. package.json
  13. static/
  14. test/
README.md

GCC Explorer

GCC Explorer is an interactive compiler. The left-hand pane shows editable C/C++ code. The right, the assembly output of having compiled the code with a given compiler and settings.

Try out the demo site!