why not consfold sin(const)

Robert Dewar dewar@gnat.com
Sun Sep 19 22:41:00 GMT 2004


Timothy J.Wood wrote:

>   How about defining a ctor for that .o file that calls the target's 
> elementary function at run time and puts it a global created by the 
> compiler?

Unnecessarily messy, it's not that hard to get hold of high precision
elementary functions (the code is certainly immediately available in
Ada, so it must be available in C).
> 
>   This has some arguably less than ideal side effects (the global would 
> need to be in writable memory), but it seems to me that this is not 
> "impossible" as a previous message claimed.

Nothing here is impossible! It's just a matter of whether it is
worthwhile.




More information about the Gcc mailing list