Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > template instantiations on SUN

Reply
Thread Tools

template instantiations on SUN

 
 
sunil
Guest
Posts: n/a
 
      08-13-2008
reading http://docs.sun.com/source/819-3690/...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
 
Reply With Quote
 
 
 
 
mlimber
Guest
Posts: n/a
 
      08-13-2008
On Aug 13, 12:14*pm, sunil <sunilsreenivas2...@yahoo.com> 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-lit...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-lit...t.html#faq-5.9

Cheers! --M
 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      08-13-2008
sunil wrote:
> reading http://docs.sun.com/source/819-3690/...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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
template instantiations on SUN sunil C++ 0 08-13-2008 04:19 PM
Sun Updates Sun Java Availability Suite, Adds Sun Cluster Advanced Edition for Oracle Real Application Clusters Deployments technology_post@yahoo.com Java 0 04-05-2006 04:29 AM
extern usage for template instantiations sks C++ 3 12-03-2005 01:51 PM
Can different instantiations of the same template can access others' private member? PengYu.UT@gmail.com C++ 1 10-19-2005 05:52 PM
Re: STL list and template instantiations mpichini C++ 0 07-01-2003 05:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57