What is the minimum file size of a PE file (exe) on Windows? And the minimal memory allocation? [duplicate]
This question already has answers here : What is the smallest possible Windows (PE) executable? (2 answers) Closed 3 years ago . What is the minimum file size of a PE file (exe) on Windows? And the minimum memory allocation? I assembled (using MASM (ml.exe) and link.exe that come with VS 10) the following code: I can not leave out kernel32.lib and ExitProcess, if I do, the program crashes. ; Assmebly options .386 .MODEL FLAT, STDCALL option casemap:none ; Include Libs includelib kernel32.lib ; Imported symbols ExitProcess PROTO :Dword Sleep PROTO :Dword ; Code .CODE start: invoke Sleep, 10000