Thread: auto_ptr array

  1. #31
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks CornedBee,


    Question answered.

    Quote Originally Posted by CornedBee View Post
    Maybe. How a compiler works is a mystery to most programmers. You don't know what it does. It's a black box. You put in source on one end and get out object code on the other. Much can happen in-between.

    regards,
    George

  2. #32
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by CornedBee View Post
    Maybe. How a compiler works is a mystery to most programmers. You don't know what it does. It's a black box. You put in source on one end and get out object code on the other. Much can happen in-between.
    And just like the question of "Meaning of life, universe and everything" according to the great Douglas Adams "Once you've got it figured out, it gets replaced with an even more complex version" - once you think you know what the compiler does for all things, the next version of the compiler comes out, and things are different.

    We're just getting a new compiler in at work, and the initial tests show that it generates code that is about 2% longer than the previous compiler version - you'd expect the new compiler to generate SMALLER code.

    --
    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. #33
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    You know so much, thanks Mats!


    Quote Originally Posted by matsp View Post
    And just like the question of "Meaning of life, universe and everything" according to the great Douglas Adams "Once you've got it figured out, it gets replaced with an even more complex version" - once you think you know what the compiler does for all things, the next version of the compiler comes out, and things are different.

    We're just getting a new compiler in at work, and the initial tests show that it generates code that is about 2% longer than the previous compiler version - you'd expect the new compiler to generate SMALLER code.

    --
    Mats

    regards,
    George

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 07:25 PM
  2. Replies: 6
    Last Post: 11-09-2006, 03:28 AM
  3. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 07:31 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM