I am inspecting the memory usage by EXERB executables. I found that a
program that is compiled into console mode will occupy about 50% less
memory than the same program compiled into gui mode (I didn't use any
window stuff, such as FXRuby or SWin etc). If I minimize the console
window, the memory consumption is even less.

Could anyone give me a hint why the gui mode program (without window)
will occupy so much memory? Is there any way to optimize this?

Thanks a lot.