flat assembler
Message board for the users of flat assembler.

Index > Windows > Smallest empty win32 program

Author
Thread Post new topic Reply to topic
userhello



Joined: 10 Mar 2016
Posts: 1
userhello
I'm very new to assembly and I am looking for the following example. Perhaps someone can post some short code.

Using flat assembler for windows (win32 not x64 please):

I need the smallest empty windows win32 exe (just a program that runs and does nothing). Where I keep all the compiler settings at the bare minimum.

...and a question. would such a minimum program be the same for a win32 console application as it would be for a win32 application?

...and at last, can you please provide the compilation string I need to type for fasm. (Don't forget - absolute beginner, here).
Post 10 Mar 2016, 23:02
View user's profile Send private message Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 116
Mikl___
Hi, userhello,
  1. smallest windows program with MessageBox in WinXP has size is 97 bytes. How to create that program read in http://www.cyberforum.ru/assembler-articles/thread751124.html in "Урок 2a. Как уменьшить размер программы, выводящей MessageBox" and "Win32 API. Урок 2c. Еще больше уменьшаем MessageBox"
  2. a working PE64 with import, size of exe-file is 268 bytes
  3. small hello world again
Post 11 Mar 2016, 03:41
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 116
Mikl___
Hi, userhello!
What absolutely nothing is clear?
Post 19 Mar 2016, 02:10
View user's profile Send private message Visit poster's website Reply with quote
jkhjklhgl



Joined: 04 Mar 2016
Posts: 9
jkhjklhgl
This compiles to a runnable program:
Code:
format PE console
       ret                              
Post 23 Mar 2016, 13:44
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.