Sujet : Re: Calling conventions (particularly 32-bit ARM)
De : tkoenig (at) *nospam* netcologne.de (Thomas Koenig)
Groupes : comp.archDate : 14. Jan 2025, 21:31:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vm6hjv$2ion3$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : slrn/1.0.3 (Linux)
Scott Lurndal <
scott@slp53.sl.home> schrieb:
Thomas Koenig <tkoenig@netcologne.de> writes:
Scott Lurndal <scott@slp53.sl.home> schrieb:
>
https://pubs.opengroup.org/onlinepubs/9799919799/functions/sin.html
>
Clearly there are programmers who wish to be able to detect
certain exceptions, and POSIX allows programmers to
select that behavior.
>
Clearly, there is a committee which wanted to be able for people
to detect certain error conditions on a fine-grained level.
One assumes tht they did not consider the consequences.
>
I spent several years on one of those committees[*] in the 90s. There were math and IEEE
FP experts who very carefully considered all the consequences of changes
to the math interfaces.
Putting in mandatory errno handling for transcencental intrinsics,
and making this dependent on a global flag, was a huge mistake.
Either the people on that particular committee didn't consider
the consequences, or they (second option to the one above) didn't
understand the consequences what they were doing. Vector computers
had already been in service for a decade when POSIX was released,
and a question "Would it run well on a Cray" would have answered
itself.
OTOH, they can be excused if they thought that C should not be
be used for serious numerical work, and would not be. People had
FORTRAN for that...