Author Topic: smallest exe size  (Read 2207 times)

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 34
smallest exe size
« on: September 14, 2012, 01:20:54 pm »
hi

just confusing about -nodefaultlib and -nostartupfiles , i've used them with DEV-CPP without problem
but codeblocks says unrecognized option '-nostartupfiles'


this is the program

Code: [Select]
#include <windows.h>

extern "C" void WinMainCRTStartup()
{
  MessageBox(NULL,"samll exe"," ",NULL);
}


any idea

zabzonk

  • Guest
Re: smallest exe size
« Reply #1 on: September 14, 2012, 01:32:44 pm »
The GCC option is -nostartfiles

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12122
    • Travis build status
Re: smallest exe size
« Reply #2 on: September 14, 2012, 01:54:19 pm »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: smallest exe size
« Reply #3 on: September 14, 2012, 02:49:59 pm »
thanks it works :D

the only thing i missed in C::B (infact its mingw related ) is  adressing local variables with intel asm syntax