Thread: I need to learn more.

  1. #16
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Probably because Mingw statically links the library code inside the EXE.
    Beware of debug/release configurations, as well, since debug bloats the size quite well.
    And 30 KB is not much.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #17
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Size of the executable depends on your linking options. Obviously, smaller executable usually means that more components are included in DLL's, and less is part of the original executable.

    C++ uses a lot of template code, and that can grow quite a bit.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #18
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Btw, my C++ Hello World application is 8.5KB (Release), so it beats all of the compilers.
    Debug is 38.5KB.
    (Visual Studio 2008 Professional)
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #19
    Registered User
    Join Date
    Jan 2008
    Posts
    182
    Well... I have to start learning how to use Visual C++

    When I said full of crap, I didn't mean that it is a bad compiler, but that it has so many windows everywhere, so many little text all around the place, the start page is kind of weird, when you select to make a new project a wizard pops up etc. But, at least the help is useful and got me up and running.
    (Visual Studio Express 2008)

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Ah, but all these windows has a meaning and is useful in some way. And if you just think they're in the way, you can hide them.
    Click on the sticky thing to make it auto-hide and appear only when you move the mouse there.
    Or you can use the Full Screen feature (I don't remember where it's hidden) to enlarge the code window to Full Screen.
    If you continue to use it, you will get used to it. It always takes a little time before you start to find your way around an IDE.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    in release mode you also have optimize for speed/optimize for size options.
    The last (with dynamic linking of run-time libraries) should give the smallest size...
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  7. #22
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    How about contributing something instead of posting spam or other meaningless stuff?
    Eh? i do beg your pardon

    and whats spam?

  8. #23
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    How about contributing something instead of posting spam or other meaningless stuff
    eh? oh I do beg your pardon, how about you lighten up?

    maybe i should just start banging on about indentation in future each time i feel like adding a comment.

  9. #24
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    There didn't seem any real point to a message like:

    Quote Originally Posted by rogster001 View Post
    hahaha, thats quality...!
    Especially when not known to where it was directed at. Thus it was a useless reply because it didn't contribute anything - at all - to the thread or discussion. That's all I was hinting at.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #25
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    sorry 'twas just i was tickled by the comment 'good luck you are certainly going to need it' i was assuming my reply would go straight in to the next comment along, thus directly relating... but hey, not refreshing my page i would not know where it was going in,,, sooo

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What do I learn now?
    By Lorgon Jortle in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2009, 06:44 PM
  2. Do you ever try to learn too much?
    By Stonehambey in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 06-17-2008, 07:55 AM
  3. Looking to learn C++
    By Fuzzy91 in forum C++ Programming
    Replies: 40
    Last Post: 04-13-2006, 02:38 AM
  4. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  5. Novice trying to learn C++
    By dead in forum C++ Programming
    Replies: 10
    Last Post: 12-01-2003, 09:25 PM