Results 1 to 7 of 7

Thread: Smaller .exe size

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    Smaller .exe size

    I compiled a simple program to show or hide a window and the .exe file is 112kb, which seems a little big. How can I make it smaller? The "optimize for size" option in the borland free compiler 5.5 doesn't work.
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Member
    Join Date
    Feb 2001
    Posts
    57

    You could use this...


  3. #3
    Zaei
    Guest
    Compile your application in release mode.

    Z.

  4. #4

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    I'm not using VC++, i am using borland C++ compiler.
    Alcohol & calculus don't mix.
    Never drink & derive.

  5. #5
    Zaei
    Guest
    You should still be able to compile in a Release Mode. I cant believe that Borland could be that stupid, and not make it easy to remove all debugging symbols.

    Z.

  6. #6
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Try these tips here:

    http://pr0n.newhackcity.net/~sd/tinyexe.html

    These are for VC++ but some of them can work on any compiler
    Baaaaaaaaah

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If it doesn't use any C++ specific features such as classes or templates, then why not modify it to compile as C code? That will REALLY make a difference.

    Also get stripreloc from www.jrsoftware.org
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

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



Click Here to Expand Forum to Full Width