Date: Wed, 28 Jun 1995 08:54:01 +0300 From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) To: A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk Subject: Re: size of A.OUT files Cc: DJGPP AT sun DOT soe DOT clarkson DOT edu > a.out into an .exe file by prepending go32.exe . If compiled without -g, the > resulting .exe file is 520953 bytes long, but when I call the DOS command `MEM > /C' from inside the program it says that the program as loaded (presumably > including go32.exe) occupies only 131584 bytes of conventional memory (and no 130KB is the usual go32 low-memory footprint (it indeed is larger than its image on disk). Everything else (EMS/XMS) is paged out by go32 when you spawn mem /c, so you don't see it. (If you really want to see that extended memory, you can stubedit your program to not be paged out.)