Re: BDS2006 exe sizes




"Ian" <ian610@xxxxxxxxxxxxxxxx> wrote in message
news:DebLf.5235$bV4.2988@xxxxxxxxxxxxxxxxxxxxxxxx
On Thu, 23 Feb 2006 04:31:02 GMT, Rob Kennedy wrote:

Why is a "hello world" program a meaningful benchmark?

Good question, and I'm going to try to answer it the best way I can.

A "Hello World" program is usually the norm for testing out various
compilers for all types of programming languages, and for starting out
learning a new programming language. It probably dates back to the
1970s when K&R used it as an introductory program in their book "The C
Programming Language". A hello world program is one of the smallest
programs one can use to see how large of an executable the compiler
will produce from that source. As soon as I get my hands on a new
compiler, the first thing I do is test it out using a simple "Hello
World" (or just a bare-bone skeleton program) with disabled Debug info,
Range checks, etc. If the compiler produces a large executable from
such a simple program as those, then they aren't efficient enough in my
book.

In D5 its 41KB.

A 'Hello World' program is not one of the smallest programs one can write.
It is no measure of compiler efficiency. The only reason it is often used
as an introduction is because its generally very simple to write and it
produces immediate gratification. I.E. it puts something on the screen.

Judging the worth of a compiler by the size of the executable it generates
for a very simple program is wrong headed. It does not take into account
any significant features a development system may offer. Nor is it a
measure of how efficient developed applications may be. When all is said
and done, except in the most extreme cases, quality of design,
implementation algorithms, speed and accurracy of developement, and ease of
maintenance will always be more important than compiler efficiency.

As in other areas of human endevor its not size that matters, its how you
use it. :)


.



Relevant Pages

  • Re: BDS2006 exe sizes
    ... 1970s when K&R used it as an introductory program in their book "The C ... Programming Language". ... programs one can use to see how large of an executable the compiler ... It is no measure of compiler efficiency. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Dealing with ad hominem attacks in comp.programming
    ... Surely you use variables with impicit dimensions? ... It also determines whether you can use the programming language as is or need fiddles. ... If you have to live with existing ones, either use their notation or do a preprocessing stage to allow the use of your own. ... values in the machine and relying on the compiler to do units analysis. ...
    (comp.programming)
  • Re: Include Statement
    ... In programming language design the language designer makes a decision between different concepts which can be used to achieve a certain goal, based on an evaluation of these concepts. ... because it's done by the compiler. ... class MyClass1 ... I think you mind is molded about GUI IDE development and now power programming console development methods. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: OT: More Antilock brakes
    ... > If the programming language is fixed, then you're far more likely to ... and the targets that a compiler supports should be an open sum type. ... target architecture or user community. ...
    (comp.lang.lisp)
  • Re: i++ and ++i
    ... The C programming language is intended for writing programs for a wide ... Retrieve the data pointed at by a pointer. ... That depends on the compiler: I can see that a compiler might compile ... though it performs an extra redundant incrementation. ...
    (comp.lang.c)