Newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!cam-news-feed3.bbnplanet.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!howland.erols.net!vixen.cso.uiuc.edu!uwm.edu!biosci!parc!rocksanne!news
From: Mark Woodruff <mwoodruf@xn.xerox.com>
Subject: Re: What is wrong with OO ?
Content-Type: text/plain; charset=iso-8859-1
Message-ID: <32DD897D.97B@xn.xerox.com>
Sender: news@news.wrc.xerox.com
Content-Transfer-Encoding: 8bit
Organization: Xerox
References: <5acjtn$5uj@news3.digex.net> <JSA.97Jan1181506@alexandria> <E3I8GL.AuH@research.att.com> <32D11FD3.41C6@wi.leidenuniv.nl> <dewar.852772995@merv> <32D53473.4DAA423A@eiffel.com> <yf3afqg12ho.fsf@sabi.demon.co.uk> <01bbd235$b0f3fbe0$LocalHost@christophe-leph>
Mime-Version: 1.0
Date: Thu, 16 Jan 1997 01:50:53 GMT
X-Mailer: Mozilla 2.0 (WinNT; I)
Lines: 20
Xref: glinda.oz.cs.cmu.edu comp.lang.c++:240687 comp.lang.smalltalk:49194 comp.lang.eiffel:17383 comp.lang.ada:56039 comp.object:59863 comp.software-eng:52575

Vos nom et prnom 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.
