Memory Limits on judge

I want to setup my compiler’s memory limit exactly same as the codechef judge’s memory limit(both stack and heap). How to do it?
I am using codeblocks 12.11 + mingw(windows).

Look here and here.

//