🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8894

Re: The Most Compressed

#8894
From: Ed Mulroy [TeamB]
Date: Tue, 31 Aug 2004 01:02
53 lines
2577 bytes
-----filename.cpp--------------
#include <windows.h>

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
    {
    MessageBox(HWND_DESKTOP, "This is a Hello World!", " Hi!!", 
MB_OK);
    return 0;
    }

-------------------

Static linked 25,088 bytes
bcc32 -RT- -x- -W filename noeh32.lib

Dynamic Linked 5,632 bytes
bcc32 -RT- -x- -WR filename noeh32.lib

.  Ed

> Jeff Kish wrote in message
> news:lnh7j09tgap87t7u8edf7eq40ilivcsdi4@4ax.com...
>
>>My Hello World sample that is like below :
>>    #include <windows.h>
>>    #include "dialogs.hpp"
>>    #pragma hdrstop
>>    #pragma argsused
>>    WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
>> LPSTR
>>lpCmdLine, int nCmdShow)
>>    {
>>      ShowMessage("This is a Hello World!");
>>      return 0;
>>    }
>>has 12288 bytes lenght when I dont attach any RTL
>>if I attach RTLs , (RunTimePachage and Dynamic RTL) it wont compile 
>>becasue
>>there is VCL components/RTLs I think.
>>Then when I only arrach Dynamic RTLs it becomes : 51712
>>
>>I personally think , It is possible to make a 1 Kilobytes exe file 
>>to do a
>>very simple job like Hello World !!
>>What you peoples think? thx for your attentions.
>>
>>and ASPACK make it 31744 bytes :-? good work for aspack :-)
>>
>>any more idea?
>>
> no. sorry. aspack was my solution to shrink bloated exe's.
> I had problems making it work on dlls however.
> You may need to use other compilers to make smaller executables...
Technical Details
Message-ID: <4133ce32@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4130d6c2@newsgroups.borland.com> <4505j0d7fmr3dbl9fpabplhbpvv0gg50i5@4ax.com> <4133585a@newsgroups.borland.com> <lnh7j09tgap87t7u8edf7eq40ilivcsdi4@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8f88fecd49aea605
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4130d6c2@newsgroups.borland.com> <4505j0d7fmr3dbl9fpabplhbpvv0gg50i5@4ax.com> <4133585a@newsgroups.borland.com> <lnh7j09tgap87t7u8edf7eq40ilivcsdi4@4ax.com>
Subject: Re: The Most Compressed
Date: Mon, 30 Aug 2004 21:02:15 -0400
Lines: 55
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.161.27.71
Message-ID: <4133ce32@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093914162 12.161.27.71 (30 Aug 2004 18:02:42 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail