file suze sux

This is a discussion on file suze sux within the C++ Programming forums, part of the General Programming Boards category; y do a 3line file compile into and 70kb program is it summit to do with the .h files can ...

  1. #1
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154

    file suze sux

    y do a 3line file compile into and 70kb program
    is it summit to do with the .h files
    can i delete sum lines from them to make it smaller

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    15
    Yes, programs (especially Windows ones) require a ton of overhead, even if the actual program you wrote is very short. If you have unnecessary #includes, by all means get rid of them, but otherwise, you're kinda stuck. If it really matters to you, and it's not a Winblows program, you could always go to a lower level, such as writing the whole thing in assembly.

  3. #3
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    >>can i delete sum lines from them to make it smaller

    Ooooh boy. You'd be looking for serious trouble if you messed with the headers.

    Only functions that are used in your program get 'compiled' into it. That means you can include all the headers you want (although its bad programming practice) and unless you use the function, your app wont get any bigger.

    Personally I wouldnt worry about. Size doesnt matter.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Try using a release build vice debug build.

  5. #5
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154

    in dew and numb

    sry dont no what thats means i would be asking simple questions if i new alot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 09:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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