How to create a lightweight C code sandbox?

前端 未结 13 1188
天涯浪人
天涯浪人 2020-11-29 19:43

I\'d like to build a C pre-processor / compiler that allows functions to be collected from local and online sources. ie:

#fetch MP3FileBuilder http://scripts         


        
13条回答
  •  再見小時候
    2020-11-29 20:07

    8 years later and I've discovered a new platform that meets all of my original requirements. Web Assembly allows you to run a C/C++ subset safely inside a browser and comes with similar safety restrictions to my requirements such as restricting memory access and preventing unsafe operations on the OS and parent process. It's been implemented in Firefox 52 and there are promising signs other browsers will support it in the future.

提交回复
热议问题