public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Template auto instantiation
@ 1999-06-30 23:07 Chad Juliano
  0 siblings, 0 replies; 2+ messages in thread
From: Chad Juliano @ 1999-06-30 23:07 UTC (permalink / raw)
  To: egcs-bugs

I have a proposal for the todo list.

The Solaris, IRIX, and probably other compilers do not have a need for
the '#pragma  implementation' and '#pragma interface' directives for
their instantiation of templates. The implimentations vary but IRIX,
for example, keeps database in the working directory containing the
locations of templates it encountered during compilation. After
compiling the objects but before creating an archive or executable, it
runs a prelinker 'edg_prelink' on all the object files. The prelinker
searches for unresolved references to templates and compiles them into
additional object files which get linked or added to the archive. This
guanantees that there are no duplicate instantiaions.

A solution like this would allow for external templates while avoiding
the proprietary gcc #pragmas.

---------------------------------------------------
Chad Juliano * cjulian@gar.esys.com * 972-205-9781
Software Engineer * Raytheon Systems Company
---------------------------------------------------

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Template auto instantiation
@ 1999-06-30 23:07 Mike Stump
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 1999-06-30 23:07 UTC (permalink / raw)
  To: chadj, egcs-bugs

> Date: Wed, 30 Jun 1999 16:35:34 -0700 (PDT)
> From: Chad Juliano <chadj2@yahoo.com>
> To: egcs-bugs@egcs.cygnus.com

> I have a proposal for the todo list.

Bad idea, already been done.  See -frepo, and the new link.once magic
of GNU ld.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-30 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-30 23:07 Template auto instantiation Chad Juliano
  -- strict thread matches above, loose matches on Subject: below --
1999-06-30 23:07 Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).