template instantiations on SUN

Discussion in 'C++' started by sunil, Aug 13, 2008.

  1. sunil

    sunil Guest

    reading http://docs.sun.com/source/819-3690/Program_Org.html#37468, I
    see there are two ways to instantiate templates: template definitions
    included, template definitions separate, does template definitions
    separate mean there will be only one copy of instantiated template
    code per type ?
    Also the compiler options: -instances=static,global,explicit atleast
    last three mention they work only with definition included, -
    instances=extern doesnt mention anything (does this work with
    definition included/separate ) both of them? (http://docs.sun.com/app/
    docs/doc/805-4954/6j4mf9fl2?a=view)
    What is the default value for this optoin for this sun compiler
    version:
    CC -V
    CC: Sun C++ 5.5 Patch 113817-15 2005/10/25
    Thanks
     
    sunil, Aug 13, 2008
    #1
    1. Advertising

  2. sunil

    mlimber Guest

    On Aug 13, 12:14 pm, sunil <> wrote:
    > readinghttp://docs.sun.com/source/819-3690/Program_Org.html#37468, I
    > see there are two ways to instantiate templates: template definitions
    > included, template definitions separate, does template definitions
    > separate mean there will be only one copy of instantiated template
    > code per type ?
    > Also the compiler options: -instances=static,global,explicit atleast
    > last three mention they work only with definition included, -
    > instances=extern doesnt mention anything (does this work with
    > definition included/separate ) both of them? (http://docs.sun.com/app/
    > docs/doc/805-4954/6j4mf9fl2?a=view)
    > What is the default value for this optoin for this sun compiler
    > version:
    > CC -V
    > CC: Sun C++ 5.5 Patch 113817-15 2005/10/25


    For your first paragraph, see this FAQ:

    http://www.parashift.com/c -faq-lite/templates.html#faq-35.14

    For your second, post in a newsgroup that deals with Sun's tool chain.
    This group deals with the standard C++ language proper, not particular
    compilers thereof. See this FAQ for what is on-topic here and for some
    ideas of where else you might ask:

    http://www.parashift.com/c -faq-lite/how-to-post.html#faq-5.9

    Cheers! --M
     
    mlimber, Aug 13, 2008
    #2
    1. Advertising

  3. sunil

    Ian Collins Guest

    sunil wrote:
    > reading http://docs.sun.com/source/819-3690/Program_Org.html#37468, I
    > see there are two ways to instantiate templates: template definitions
    > included, template definitions separate, does template definitions
    > separate mean there will be only one copy of instantiated template
    > code per type ?
    > Also the compiler options: -instances=static,global,explicit atleast
    > last three mention they work only with definition included, -
    > instances=extern doesnt mention anything (does this work with
    > definition included/separate ) both of them? (http://docs.sun.com/app/
    > docs/doc/805-4954/6j4mf9fl2?a=view)
    > What is the default value for this optoin for this sun compiler
    > version:
    > CC -V
    > CC: Sun C++ 5.5 Patch 113817-15 2005/10/25


    See the documentation for the current compiler (yours is very old) and
    direct any questions to the Sun Studio forum on forums.sun.com.

    --
    Ian Collins.
     
    Ian Collins, Aug 13, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    2,928
  2. mpichini
    Replies:
    0
    Views:
    410
    mpichini
    Jul 1, 2003
  3. Replies:
    1
    Views:
    287
    Victor Bazarov
    Oct 19, 2005
  4. sks
    Replies:
    3
    Views:
    427
  5. sunil
    Replies:
    0
    Views:
    333
    sunil
    Aug 13, 2008
Loading...

Share This Page