Results 1 to 14 of 14

Thread: Size of Delphi exes..

  1. #1
    riPPadoGG
    Guest

    Question Size of Delphi exes..

    HI ALL,

    I have just learned Delphi..
    but,
    1. I found that a simple "hello world" app has 300k+ (in Delphi 5 default compiler settings). Can I reduce this? I wish I could use Delphi for key-genning.. (Currently I use Borland C++ or masm32 if code is rippable)

    2.Does delphi has any external dll dependencies?(such as msvbvm for VB. I have seen Delphi control moving to vcl5.dll while tracing Delphi apps)

    regards
    doGG

    IN ANY CASE CHEERS TO BORLAND..
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    stealthFIGHTER
    Guest

    EXE size

    Hello riPPadoGG,

    I use D3. My compiled "hello world" program has < 200 kB. But when I want to make a small application (kg/patch), I don't use VCL. I code in non-VCL. After compilation the EXE size is +- 50 kB (uses Windows, Messages, SysUtils;). And this file contains: 14 kB bitmap file and 1 kB icon file. So after packing my final program has about 30 kB.

    sF
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  3. #3
    hi riPPadoGG,

    For small exes, I suggest you try KOL(http://gregor.mastak.ru/~kol/). It's a good partial alternative of VCL.

    yes VCL(VCL*.DLL) can be dynamically linked to your exe or statically linked.
    :DWARNING: Shareware authors are reading your detailed discussions without paying you!:D

  4. #4
    NikDH
    Guest

    Re: Size of Delphi exes..

    Originally posted by riPPadoGG
    HI ALL,

    ...(Currently I use Borland C++ or masm32 if code is rippable)

    2.Does delphi has any external dll dependencies?(such as msvbvm for VB. I have seen Delphi control moving to vcl5.dll while tracing Delphi apps)

    But if i'm right even Borland C++ builder has external dll dipendencies too
    Is it right ?

    See ya
    NikDH
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  5. #5
    riPPadoGG
    Guest

    me back..

    Hi All...
    I was on vacation to a beautiful place...Sorry for the delay...

    Being a complete newbie towards Delphi...
    How can I compile without VCL??

    If I can make 50k Delphi keygens(unpacked), then it is COOOOL..

    Btw, my Delphi version is 5..
    regards and many thanks..

    doGG
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  6. #6
    NikDH
    Guest

    Re: me back..

    Originally posted by riPPadoGG
    Hi All...
    I was on vacation to a beautiful place...Sorry for the delay...

    Being a complete newbie towards Delphi...
    How can I compile without VCL??

    If I can make 50k Delphi keygens(unpacked), then it is COOOOL..

    Btw, my Delphi version is 5..
    regards and many thanks..

    doGG
    Thats what i was saying before about Borland products way of working:
    both C++ builder and Delphi have external dependencies
    If u wanna have 50k keygens unpacked u've to pay the price
    to have external vcl files installed on that pc
    and thats an higher price than the mfc external dipendencies ones coz these last files r into the standard installation of
    M$ Windows

    See ya
    NikDH
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  7. #7
    stealthFIGHTER
    Guest

    Re: Re: me back..

    Originally posted by NikDH


    Thats what i was saying before about Borland products way of working:
    both C++ builder and Delphi have external dependencies
    If u wanna have 50k keygens unpacked u've to pay the price
    to have external vcl files installed on that pc
    and thats an higher price than the mfc external dipendencies ones coz these last files r into the standard installation of
    M$ Windows

    See ya
    NikDH
    Hmm, I don't think you have to install some vcl files.
    I've compiled 20 kB Delphi project under Win98 and then I used it under Win2000 - no problem (I have no special vcl files installed under Win2000).

    sF
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  8. #8
    NikDH
    Guest

    Re: Re: Re: me back..

    Originally posted by stealthFIGHTER


    Hmm, I don't think you have to install some vcl files.
    I've compiled 20 kB Delphi project under Win98 and then I used it under Win2000 - no problem (I have no special vcl files installed under Win2000).

    sF
    Well i'm not very expert with delphi but i sometimes use Borland
    C++ Builder and it requires its external dependencies 4 sure
    Well i think its quite strange 20kB delphi code works well without its vcl but have u checked if on win2k machine there r some vcl files coz u've said there r no special vcl files but what does special mean?

    See ya
    NikDH
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  9. #9
    G'day

    Delphi uses standard libraries built by Borland which are complied with the executable when it is built.

    The forms library is rather large and accounts for a large percentabe of the 300k hello world example.

    Search for delphi examples using the win32 api calls for forms instead of the standard delphi forms library.

    The win32 api can be a large learning curve but using it instead will mean the same hello world executable comes down from 300k to 10k.

    Zac Dac

  10. #10
    stealthFIGHTER
    Guest
    Originally posted by NikDH


    Well i'm not very expert with delphi but i sometimes use Borland
    C++ Builder and it requires its external dependencies 4 sure
    Well i think its quite strange 20kB delphi code works well without its vcl but have u checked if on win2k machine there r some vcl files coz u've said there r no special vcl files but what does special mean?

    See ya
    NikDH
    Yeah, I have "clear" installation of Win2000 - no sw installed! And the little app still works!

    Here is little example of non-VCL (WinAPI) application (it is quite big, because it contains a bmp logo [14 kB] and an icon [11 kB] and it is compiled with D6 ).

    sF
    Attached Files Attached Files
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  11. #11
    riPPadoGG
    Guest

    Ooooops...

    Hi SF..
    Me TOTAL NEWBIEE..(in Delphi...) ie You are talking above me head..
    What is the difference between VCL and non-VCL??
    Can I have a piece of that source-code???

    regards
    doGG
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  12. #12
    Try this link...

    h**p://www.delphi-resource.com/articles/raw_api.shtml

    Zac Dac

  13. #13
    Idcrisis
    Guest
    riPPadoGG,

    Go to Project->Options->Packages and check the "Build with runtime packages" option.

    You resultant exe will be then around 15K in size!

    The runtime stuff to be given with the exe with be somethings like rtl50.bpl and vcl50.bpl.

    These are somewhat like (in principle) msvcrt*.dll, msvbvm*.dll etc.

    This single fact alone is the reason why so many ignorant people should stop saying Delphi and VB in the same breath and claim foolishly that both are RADs which produce bloated code. VB is not even flea on Delphi's back when it comes to RAD. VC++ is not one when it comes to optimised code.

    Delphi and Builder and BC++ use the same compiler, different parsers, the compiler being superlative in its optimization, and jesus heals
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  14. #14
    riPPadoGG
    Guest

    Thank You All....

    Hi..
    This is a late reply..
    Thank you all.. The link was really helpfull.
    I might finally code my next key-gen in Delphi... I am planning to rip the code..
    regards and thanks to ALL.
    HAVE A NICE TIME CRACKING...
    doGG
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. Replies: 6
    Last Post: July 23rd, 2011, 01:07
  2. getting Virtual Size of Section in PE
    By Vigual in forum The Newbie Forum
    Replies: 2
    Last Post: November 14th, 2009, 09:55
  3. Size of the Log
    By MazeGene in forum OllyDbg Support Forums
    Replies: 2
    Last Post: July 27th, 2005, 14:30
  4. PE File Virtual Size > Size Of Raw Data
    By 4543 in forum The Newbie Forum
    Replies: 6
    Last Post: June 7th, 2004, 14:01
  5. Un-packing UPX packed exes
    By peter in forum Malware Analysis and Unpacking Forum
    Replies: 17
    Last Post: September 26th, 2003, 06:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •