0

I'm trying to assemble a >200MB x86 asm file with GAS in a VM with 4GB of RAM. Unfortunately, GAS quickly consumes all system memory and gets killed. I've also tried with the --reduce-memory-overheads flag, but the same result occurs.

I've also tried using yasm, but it also runs out of memory.

I know assemblers aren't really designed to handle files of this size, but I'm also surprised that they use so much memory trying to do so (why is this the case?).

The actual code is just one big function, split into several parts, so theoretically possible to break up into separate functions (or do they need to be separate files?), but is there any way to assemble this without splitting up the function? I could also allocate more RAM, but I suspect that it wouldn't help much for the amount of RAM I have available (I would've thought 4GB to be plenty).

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
zinga
  • 769
  • 7
  • 17

0 Answers0