摘要
为了解决当前许多编译工具只能在单机上使用的局限,提出了一个在线共享使用的网络化编译环境的设计方案。方案采用B/S体系结构,在服务器端使用中间组件将Web服务器与编译器等软件工具无缝集成,用户与系统间交互主要采用I/O重定向技术实现。编译程序时通过设计网络中间组件调用服务器端的编译器处理用户提交的程序,并采用I/O重定向方法实现程序运行时的输入与输出。该模型实现了编译工具的网络共享,为Internet用户提供了一种随时随地的在线式编译服务,可作为Online Judge系统的支撑框架。实验结果表明,该设计方案是有效可行的。
In order to solve the current limitation which many compilation tools can only be used on single,propose a design scheme of sharing online using the network of the compiler. This scheme adopts B/S architecture,Web server and the compilation tools are integrated as an environment with the intermediate components in the server side,interaction of user and the system mainly uses the I/O redirection technology. When compiling the program,design the network intermediate components to call compiler to process source program, and I/O redirection method is adopted to realize the input and output of running program. The model implements network sharing of the compiler tools,provides Internet users with an on-line compilation services anytime and anywhere,and is used as a support framework of Online Judge system. The experimental results show that the method is effective and feasible.
出处
《计算机技术与发展》
2014年第8期187-190,共4页
Computer Technology and Development
基金
贵州省科学技术联合基金(黔科合J字LKM[2011]18号
黔科合J字LKM[2013]20号)
贵州民族大学教改项目(GUM2013JG18)
关键词
云计算模型编译器
中间组件
I
O重定向
cloud computing model compiler
intermediate component
I/O redirection