From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bcb1f0aaa2fd225f X-Google-Attributes: gid103376,public From: mjmeie@ss5.magec.com (Mike Meier) Subject: Re: generic instantiation question ... Date: 1995/04/19 Message-ID: #1/1 X-Deja-AN: 101283227 sender: usenet@ss3.magec.com references: <1995Apr16.121025.28242@news.cs.indiana.edu> organization: Magnavox Electronics Systems Company newsgroups: comp.lang.ada Date: 1995-04-19T00:00:00+00:00 List-Id: Paul Hager (hagerp@cs.indiana.edu) wrote: : Q: Is machine code generated every time a generic is : instantiated? In other words, does each "copy" of : the generic generate additional code? If I remember correctly, our Alsys compiler actually has a compiler switch which allows us to select whether separate copies are made for each instantiation or a shared copy is used. Of course, you can't have it one way for some generics and another way for others, but that seems a reasonable limitation when you think of all the implementation trade-offs. I expect that other compilers have similar capabilities. Mike Meier Magnavox Electronic Systems Company