开发者

Embedding C compiler to a webpage

I am deve开发者_运维技巧loping a site for online C coding competition. The coding will be done in an editor that will be embedded in the webpage, and this must also be able to compile the program online. Is there any available compiler that can be embedded in the webpage? The server can be either linux or windows server. If anyone has any idea please share.


Well, you can always write a script that invokes an installed compiler through system() commands. Although you want to be very, very careful as this can be very dangerous. For example if you do not sanitize your input, then someone could inject commands which intentionally crash/damage your system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜