News for hackers. Stuff that matters.
Re:The Eternal Mainframe (2013) by univacky on Wednesday September 04, 2019 @11:38AM (#20878202)
Compilers like MS and Turbo C used a clever technique - a program could be compiled with a software floating point library and shipped, and the existence of the FP coprocessor would be detected at runtime and the program would self-modify appropriately. If there was a coprocessor, the first time any particular FP routine was called, it would overwrite the instruction calling the library with the appropriate FP coprocessor instruction.

There are no comments on this comment yet.