Re: sizeof([ALLOCATED MEMORY])



In article <4cgeocF15es0cU7@xxxxxxxxxxxxxx>,
Robert Latest <boblatest@xxxxxxxxx> wrote:

On Fri, 05 May 2006 14:26:23 GMT,
Howard Hinnant <howard.hinnant@xxxxxxxxx> wrote
in Msg.
<howard.hinnant-BF10D3.10262305052006@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

What reasonable steps can the C standard take to help the average C
programmer write a more efficient version of [...]

It can't, and it shouldn't. Efficiency is beyond the scope of the C
language definition.

No one is discussing mandated efficiency.

The proposal is an expanded interface giving the programmer more
information about the runtime state of his program at little or no cost.
The information does not need to be generated, it already exists. It's
just that there is currently no interface with which to obtain this
information. It has been shown that this extra information can have a
positive impact on program performance (not standard library efficiency)
if utilized. Programs that do not need or want this extra information
are free to ignore it at no cost.

If you mean that an efficient library interface is beyond the scope of
the C language definition, I think you do the creators of this
definition a disservice. Personally I'm impressed that so many aspects
of C have withstood the test of time over the past 30 years. Given all
of the advances in software development in this time frame, it could not
have done so well without a fundamentally sound and useful interface.

I believe only a small part of this interface needs a minor tweak to
keep up with changing times.

-Howard
.



Relevant Pages

  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... One temporary value doesn't, of course, neglect storage efficiency ... you're a programmer. ... refute an inductive generalization. ...
    (comp.programming)
  • Re: Can someone spot the error here?
    ... the compiler can and should assume ... but the programmer is at option to ... a language like Pascal is founded on. ... Wirth was looking both to compiler efficiency, ...
    (comp.lang.pascal.misc)
  • Re: Efficiency (was Questions (Space))
    ... Java programmer what the point of a function that did nothing but assign one ... He's right, "efficiency" is a meaningless word by itself, unless you've ... the cost of developing new programs is the ... If the operating system and have been built using ...
    (rec.arts.sf.composition)
  • Re: C++ in embedded systems
    ... >It depends on which object support you are refering to. ... >If a programmer was asked to produce an implementation, ... >>compiler or the relative efficiency of language forms (they may pay it ... >our favorite compiler, is feeling the heat. ...
    (comp.os.linux.embedded)
  • Re: object system...
    ... supporting certain kinds of programming languages and formalisms that ... I am not aware of any way in which a prototype system can be implemented ... Interface is a poor-man's MI. ... like the programmer is fused with the program etc. ...
    (comp.object)