Who has the smallest bytes

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Who has the smallest bytes

Post by Lunasole »

Lets know such a useful info as which compiler can give the smallest executable :D
Some results I tried: Windows x86, valid empty executable, ANSI mode (if possible) and any available compiler options, but no external program or packer used to reduce size:
  • 1) C, 1024b
    2) FreeBasic, 1560b
    3) PureBasic, 2048b
    4) VB.NET, 8kb
    5) VB6, 16kb
Add more if you have some
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
TI-994A
Addict
Addict
Posts: 2751
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Who has the smallest bytes

Post by TI-994A »

  • 1) C, 1kb
    2) FreeBasic, 1.5kb
    3) PureBasic, 2kb
    4) VB.NET, 8kb
    5) VB6, 16kb
Not independently verified, but just to lend some glanceable accuracy. :wink:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: Who has the smallest bytes

Post by Lunasole »

Yes, I was too lazy to restore all the sources from all languages cause I tested them within huge time difference ^^

Can only bring C sources I compiled yesterday and PB you can compile yourself.
C anyway has no concurents exept ASM maybe - the executable it generated is almost completely filled with 0x0 (unlike PB), so actual size is much lesser and easily can be trimmed to 268 bytes using some external PE editor (268 is the minimal exe size Windows7 is abble to run).


PS. That is not related to topic directly, the windows program which takes only 314 bytes:
https://habrahabr.ru/post/276371/
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
tj1010
Enthusiast
Enthusiast
Posts: 716
Joined: Mon Feb 25, 2013 5:51 pm

Re: Who has the smallest bytes

Post by tj1010 »

If you want to do it right..

Image
Post Reply