n u MiT_o r's programming pages


Small PE project

I've devoted time to find ways to get smallest PE Windows32 files. I have not yet writen any theoretical paper about this. By now, I've only done some tests. Here are the results, all done with free tools. Look at these and think about them. You must revise and edit before the MKE.BAT files in each .ZIP. In the examples for C compiler, I used several linker and some tools that I wrote to link object files with Borland TLINK32. You can comment or change the MKE.BAT files as you want.

· Using free C compilers

The smallest PE file that I found here, was compiling with MINGW32 GCC C compiler and linking with Microsoft LINK.

· Using only NASM: flat PE

The issue of this project really is write some macros that permit easyly create smallest PE files using only NASM free assembler. However, I intended a smallest PE file:

I begun flatpe study with a source code from vecna hand-made PE file. The original proggie does not run in Windows 2000, so that I did some changes, including some incipient and useful macros.

TODO: add macros and code to include export symbols.

Notes about the linkers


Contactar a  n u M I T_o r 

e-mail: numit_or@cantv.net