How to make compiler for Android using Tiny c?

I'm planning to make a compiler for android. But I have no idea what set of instructions I should compile, how to create a console and run that machine code on it.

That is the application that I am trying to replicate for learning purposes.
Please help me with that.