The fact that iOS/Android prevents you from installing gcc does not mean it is unable to do so.
You could use a bluetooth mouse and keyboard and output HDMI over the usb/lightning port and have a super portable dev machine if the OS was so inclined.
(See more in my response to your sibling comment)