CompuServe Messages

Baffled by Benchmark

    07-Dec-87 12:23:10
Fm: Thomas Holaday 70407,534
To: Steve Faiwiszewski 74106,425
What makes me queasy is passing the address of an un-declared constant. In a language which supports Declaration sections, I expect the compiler to be making up its address tables _there_. When I hit it with an undeclared in-line constant, I expect it to compile the constant into the code. I expect foo := 2 + 3 to be compile to machine instructions loading the immediate value 2 into one register and immediate value 3 into the other, summing them, and punching them into the address denoted 'foo.' I do _not_ expect the compiler to make up two dummy variables, store 2 and 3 in them, and then generate instructions to retrieve the contents of dummy1 and dummy2.