This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why not consfold sin(const)


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]