<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Compile-time math needs to be as correct as possible. RUN-time math
can worry about performance. The whole point of computer programming
is to let the machine do the hard work up front.<br>
<br>
Regarding optimizations for speed at the expense of mathematical
correctness, they need to default to Off, and be switchable to ON
for compile-time math. Runtime math *maybe* could default to On, but
since this is a change in correctness for program output, it needs
to be announced as a much bigger deal as far as source-compatibility
with existing code.<br>
<br>
On 2024-02-13 06:00, <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal-request@lists.freepascal.org">fpc-pascal-request@lists.freepascal.org</a> wrote:<br>
the compiler math is ... reducing each term of an expression ... and
the answer is not coming out right.<br>
<br>
this would result in less efficient code, since all the math will
then be done at full precision, which is slower. it is a trade-off
between size (=precision) and speed.<br>
<br>
[in] compile time math, performance doesn't count<br>
</body>
</html>