Author Topic: Small Hello World  (Read 1662 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4813
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Small Hello World
« Reply #15 on: December 16, 2016, 11:19:14 PM »
If you want irrelevant small sized "exe" files, write them in a hex editor like the really small ones are done.  :P
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

TWell

  • Member
  • ****
  • Posts: 748
Re: Small Hello World
« Reply #16 on: December 16, 2016, 11:32:54 PM »
Behind every small exe is a big framework  :biggrin:
that's why i prefer C
Code: [Select]
#pragma comment (lib, "msvcrt.lib")
#pragma comment(linker,"/merge:.data=.text")
#pragma comment(linker,"/merge:.rdata=.text")
void exit(int status);
int printf(const char * format, ...);
void __cdecl mainCRTStartup(void)
{
printf("Hello World\n");
exit(0);
}