This question may sound crazy. Is there any browser based compiler out there?
Native Client is a sandbox for running compiled C and C++ code in the browser efficiently. You can explore this.