This question may sound crazy.Is there anything 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.