Is GUD limited by the RAM as well?
Yes. It needs to exist in memory in order for you to be able to save it to a file.
However, in some cases it is possible to break up a calculation into smaller pieces and write out each piece of results to the file.