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=-0.3 required=5.0 tests=BAYES_00,CTE_8BIT_MISMATCH, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,b87849933931bc93 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public From: Mark Woodruff Subject: Re: What is wrong with OO ? Date: 1997/01/16 Message-ID: <32DD897D.97B@xn.xerox.com>#1/1 X-Deja-AN: 210335434 sender: news@news.wrc.xerox.com references: <5acjtn$5uj@news3.digex.net> <32D11FD3.41C6@wi.leidenuniv.nl> <32D53473.4DAA423A@eiffel.com> <01bbd235$b0f3fbe0$LocalHost@christophe-leph> content-type: text/plain; charset=iso-8859-1 organization: Xerox mime-version: 1.0 newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng x-mailer: Mozilla 2.0 (WinNT; I) Date: 1997-01-16T00:00:00+00:00 List-Id: Vos nom et pr�nom wrote: > If the function is very short, it's obvious for the compiler to > automatically inline it. > When it's long, it's also obvious not to make it inline. When should a call to Ackerman() be inlined? Or exit()? Key questions seem to be: What information is required to make the decision? Can the information be represented programatically? Can an algorithm be written to make the decision? I'm not convinced it's decidable because performance criteria frequently can't be determined in advance. Should a function be inlined if the resultant code pushes code onto a new page and causes page faults? -- My views may reflect the presence of the company I'm in but don't reflect my company's views nor my clients.