Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Line of sight
#19
na_th_an Wrote:prior to evaluating an expresions, all operands are automaticly type-casted to the width of the "int" type for integer values, or to the "double" type for floating point values. Then, the expresion is evaluated and, finally, the result is automaticly casted to the lvalue type.

Even z88dk does this? I'm surprised. It would inherently slow down the fastest code if all variables were expanded into something like long type before being dropped back to a byte form. This is particularly crucial on such a small machine as the spectrum - you'd be costing bytes AND time. I think forcing it wish CAST is a reasonable option, generally.

At the very least, let's keep this behaviour command line optional, if the compiler changes - I'd expect smaller, faster code that works fine for most cases to come out of it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)