EXEs too big

This is a discussion on EXEs too big within the C++ Programming forums, part of the General Programming Boards category; Why are my EXEs too big when I compile them with BC++ 5.5 ? They're below 10 Kb when I ...

  1. #1
    Unregistered
    Guest

    Exclamation EXEs too big

    Why are my EXEs too big when I compile
    them with BC++ 5.5 ?

    They're below 10 Kb when I compile using
    Turbo C++ 3 ..

    Is there a way I can compile with the
    latest compiler and yet make EXEs small ?


    http://mahurshi.tripod.com/mainframes.htm

  2. #2
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Well try removing the header file inclutions which are not needed...

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    I don't know about BC++, but in MSVC you can set an option to compile as debug (the default) or release. The debug (I think that's what it's called) version has lots of extra code.
    See if there's an option to set a "release" or similar compile option. Might be a command line option if you're in Unix/Linux.
    Truth is a malleable commodity - Dick Cheney

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Its a good chance thats the problem, compiling with dedbug info can really bloat an exe.

  5. #5
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    Not to mention, check your compiler flags and you might be able to compile for size [in sacrifice of... *gulp*... speed...] just so save your precious kilobytes...
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How Big is Too Big
    By kpreston in forum C Programming
    Replies: 4
    Last Post: 10-25-2008, 10:16 AM
  2. Big and little endian
    By Cactus_Hugger in forum C Programming
    Replies: 4
    Last Post: 10-12-2005, 07:07 PM
  3. about big O notation
    By deepakkrmehta in forum C Programming
    Replies: 3
    Last Post: 08-27-2005, 02:31 PM
  4. Using very big numbers, long isn't enough
    By Zewu in forum C++ Programming
    Replies: 9
    Last Post: 03-27-2005, 06:54 AM
  5. Looking for some big C/C++ projects
    By C-Dumbie in forum C Programming
    Replies: 5
    Last Post: 09-16-2002, 12:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21