Hi,

I have found a program. . . .

The world smallest win32 program ?
Posted on 2003-05-20 10:02:46 by QS_Ong
It size only 1024 byte !!!!
Posted on 2003-05-20 10:04:26 by QS_Ong
Nay, the smallest exe i have seen is 300+ bytes.
Posted on 2003-05-20 11:26:51 by roticv
Smallest one i seen is, 74 bytes, all it does is, Open an MS-DOS window and writes hello
Posted on 2003-05-20 11:29:59 by -=TM=-
There has been many discussions to this topic.
Posted on 2003-05-20 11:53:11 by comrade
The smallest is 0 bytes.
Posted on 2003-05-20 18:18:22 by iblis

The smallest is 0 bytes.


Then it would not be an executable because it does nothing.

It would have to be a single opcode with the least amont of clock cycles to be a exe.

Probably a NOP.
Posted on 2003-05-20 20:27:23 by IwasTitan
If it's able to be executed, it's executable.

Make a 0 byte COM file and run it in MS-DOS. And if MS-DOS won't run it, write an OS that will. And there you'll have it.
Posted on 2003-05-20 21:07:10 by iblis
it says win32 program doesn't it? not <insert os here> program.
Posted on 2003-05-21 04:32:07 by abc123

Smallest one i seen is, 74 bytes, all it does is, Open an MS-DOS window and writes hello


Privalov's COM demo is only 22 bytes:




; fasm example of writing 16-bit COM program

org 100h ; code starts at offset 100h
use16 ; use 16-bit code

display_text = 9

mov ah,display_text
mov dx,hello
int 21h

int 20h

hello db 'Hello world!',24h

Posted on 2003-05-21 04:38:01 by Vortex
That's still not a Win32 program.
Posted on 2003-05-21 06:54:50 by Sephiroth3
It's only a Win32 exec if it is a valid PE file.
Posted on 2003-05-22 18:47:02 by Paulicles the Philosopher
What is C--?
Posted on 2003-05-22 18:52:40 by Paulicles the Philosopher

What is C--?

C-- is a combination of C and asm, kinda like C++ but reversed, going smaller and lower.
http://www.goosee.com/cmm/
http://sheker.chat.ru/index_e.htm
Posted on 2003-05-22 19:02:09 by scientica
neat!
Posted on 2003-05-23 03:34:23 by Delight
Hi,

What I mean is win32 program with functional window & button.

Anyone can make this program smaller than 1024 byte ?

Hutch MASM32 example min program is 1500 byte +

But this one only 1024 byte :eek:
Posted on 2003-05-24 10:05:38 by QS_Ong
I am working on it, coding in hex.
Posted on 2003-05-24 10:09:16 by roticv
The same using FASM :) I don't think there is possible to make the program smaller then 1024bytes because of PE file format limitations.
Posted on 2003-05-24 13:54:28 by JohnFound
Posted on 2003-05-24 23:28:29 by arkane
Hm, obviously this is the next case I discovered the hot water :grin: :grin: :grin: :grin: :grin:
Posted on 2003-05-25 07:06:12 by JohnFound