News for hackers. Stuff that matters.
Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by ksk on Thursday June 22, 2017 @11:28AM (#14612902)
Well, a JIT will add overhead that will defeat the purpose of using C in the first place.
Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by DannyBee on Thursday June 22, 2017 @02:08PM (#14614104)
If you start with optimized code from the AOT compiler, and do sampling based profiling every so often, the overhead is miniscule The only time it would probably be a net lose is when you have a very large number of short lived executions.
Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by ksk on Thursday June 22, 2017 @06:23PM (#14615767)
Okay, and if you manage to show that it's feasible in practice, I am sure people would adopt such an approach.
Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by DannyBee on Friday June 23, 2017 @04:42PM (#14622603)
Err, people already do it, but you are probably not going to see widespread adoption anytime soon no matter what. Until nobody has to think about it, nothing changes