Jump to content
Tuts 4 You

Little Coding Competiton!

Teddy Rogers

Recommended Posts

Teddy Rogers

I thought it may be interesting to have a simple but interesting coding competition. There are no prizes for winning, just simple satisfaction :lol:

The challenge is to make the smallest, "Hello World!", executable file. That means you can use the smallest and tightest code possible, merge sections, create a very small DOS stub, etc. What ever it takes! The only rules are:

* It cannot be packed (this will only make the file bigger anyway)

* It must contain the text, "Hello World!"

* It must open with a message box

I've attached a simple starter to give you an idea. Everyone should be able to beat it just by compiling code in assembler. Good luck... :)



Link to comment

I decided to use FASM for a change, I usually use NASM.

Here is my EXE and the src.


Got it down to: 1,173 bytes

Im gonna strip a bit more out of the header and get it down some more.


Edited by mxwr
Link to comment

such compo already was, if i remember in hugi mag and best score was 30 bytes or less, but wasnt compatible with 9x,you can strip header etc to achive it, but only working on exe, not asm src

Link to comment



text db "Hello World!"


invoke MessageBox,0,o text,o text,0


end start

will be smaller:P

if you wanna you can run only on xp and do direct jump to messagebox so all rdata section is gone

but this is hardcore and not compatible with all

Link to comment

Can someone find the true current score so we can have a target to aim at?


I am down to 677, my friend is down to 228.

This guy who supposedly did 30, it must have been a DOS exe.

No way can you get down to that with a Win32 app.

Edited by mxwr
Link to comment
Teddy Rogers

I wasn't aware it had been done before. Just talking to a friend on IRC the other day and we got talking about how to make executables really small. Thought it would be interesting to see the results here.

30 bytes! It must have only been a header! Human, you have the file?


Link to comment

Thanks mxwr for the intro. Here's my entry: helloworld.zip

Contents Explained:

HelloWorld16 - 16Bit MS-DOS - 22 Bytes

HelloWorld32c - 32Bit Console - 244 Bytes

HelloWorld32i - 32Bit Win32 w/ Import Table - 432 Bytes

HelloWorld32w1 - 32Bit Win32 - XPSP2 Only! - 254 Bytes

HelloWorld32w2 - 32Bit Win32 w/ MessageBox Title - XPSP2 Only! - 215 Bytes

ohh, what do I win a chocolate egg for easter? ;)

Learn and Enjoy! :thumbsup:


Edited by Napalm
Link to comment
  • 4 months later...
Guest anthracene

This reminds me of some assembly coding contest ( Assembly/Assembler '99 was it called I believe - not sure ). They had ASTOUNDING graphics that you could even run in 1600*1400 and it looked awesome. There were 'videos' coded in assembler that were like 5 minutes long and only 100kb or so.

I'll see if I can find a link for one of them, might be interesting to see, even though it has nothing to do with this topic.

Link to comment

The Prophecy - Project Nemesis (by cns!phcy)

				 _____________	___
_____ ________\\_ \_ / //______
_) _// / / / \__ /
\_ \ / / / / _/
_ /_________\___/_____________\__________\ _
\/ - -diP---------------------------bM- - \/
C O N S P I R A C Y presents
T H E P R O P H E C Y Project Nemesis
(fixed party version)
a 64k intro for ASSEMBLY 2004
_ _
- -\//--------------------------------\\/- -


Amazing IMHO! Enjoy!


Link to comment
Guest anthracene

Aye, that was one of my favourites :D - there even is a so-called 4kb contest :^ and some of those programs can bring some high-end computers absolutely down on their knees.

Google for assembly 99 - should be the 2nd site listed. All the files of about 10 contests are stored there.

Link to comment
Guest anthracene

I know, I believe the site I was trying to tell you about ( not quite sure what the deal is with the external links rule so I had to do it that way ), links to that site when downloading some of the files :)

Link to comment

Yeah, the Demo-Scene is simply unbelievable... :king:

Even saw a documentation on TV tonight about ?em -

about a famous contest for them I think...

don?t remember its name.

It was said that demo-coders are the elite in

coding (and will be in the future).

No doubt...


Ahh.. it was called "Evoke 2006".

For example the winner of the 4KIntro-Contest:


3,97 KB ! OMGWTF... :wacko:

Edited by Ufo-Pu55y
Link to comment
Guest anthracene

Here is my first attempt.

"File HelloWorld.rar (0 KB) uploaded!" - lol.

887 kb. Tried tweaking it abit by messing with the header ( stuffing the code inside it ) - but had problems changing some members without crashing. Could get smaller if I figured out how to use the masm's align option correctly... Should work on any system.


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...