Здравствуйте, _nn_, Вы писали:
__>Возможно его надо где-то использовать, чтобы оптимизатор не выкинул его.
__>Там скажем:
__>__>if (ballast[0] == 1) puts(balast);
__>
static char ballast[100*1024]={0};
int APIENTRY _tWinMain( HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int )
{
char* ptr = ballast;
char* ptr_end = ballast + strlen( ballast );
while(1)
{
if( ptr == ptr_end )
{
ptr = ballast;
}
//do Somtehing
if( *ptr == 0 )
goto M1;
M1:
ptr++;
}
}
увеличивает вес исполняемого файла ровно на 1 Кб.