Hi, I am trying to build some sort of judge program (in C), which can judge files locally, but the problem is about memory limit.
For example, I may want a program to run under 32MB memory, while another one under 8MB. So is there any option in C/C++ compiler parameter to limit the stack size / available memory (I use gcc / g++ under Linux, Ubuntu 9.10) or any shell scripts available to be used before invoking gcc / g++ ? I have tried to look for it in internet, but perhaps I looked the wrong way.
So, it would be a great help if I could get any clue from anyone here. Thanks in advance
created
last reply
- 5
replies
- 860
views
- 4
users