Re: BDS2006 exe sizes



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.

.



Relevant Pages

  • 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)
  • Re: Making your own programming language
    ... > Let's say that in my programming language uses the keyword, ... Only one piece of advice worth taking: ... Mono's C# compiler is a good option for modifying C#, ... The most valuable tool you will find is a parser generator, ...
    (microsoft.public.dotnet.languages.csharp)