Re:Introducing a new, advanced Visual C++ code optimizer
by polskibus on Thursday May 05, 2016 @03:31PM
(#11639039)
I wonder what is the level of .NET's CLR optimization in comparison to this new optimizer for C++. I hope they will reuse some of those ideas to make .NET better.
[ Parent
| on HN ]
Re:Introducing a new, advanced Visual C++ code optimizer
by gratilup on Thursday May 05, 2016 @10:45PM
(#11641343)
The optimizer will be ported to .NET Native soon, it should help code quality quite a lot. The JIT is a completely different matter though: it's a different project, done by a different team - copy-paste of the source code is definitely not going to work. JIT compilers also have different priorities, unlikely they would port all parts of a large optimizer.
Re:Introducing a new, advanced Visual C++ code optimizer
by micahbright on Thursday May 05, 2016 @03:38PM
(#11639102)
Hopefully, they will just recompile the binaries, and the CLR will just get faster...
Re:Introducing a new, advanced Visual C++ code optimizer
by daeken on Thursday May 05, 2016 @04:13PM
(#11639332)
That's not really the way it works. The CLR compiles .NET code to native machine code (either at runtime or ahead of time), which means you need to implement these optimizations at the code generation layer of the CLR. You can make the CLR implementation itself faster, but that's negligible compared to the run time of the generated code.
Re:Introducing a new, advanced Visual C++ code optimizer
by micahbright on Thursday May 05, 2016 @06:07PM
(#11640016)
Are you saying the "code generation layer" of the CLR isn't itself written in c++?
All of this stuff trickles down without a doubt. I realize it isn't going to magically optimize the bytecode, however, the thing that runs the bytecode will be faster.
Re:Introducing a new, advanced Visual C++ code optimizer
by ynik on Thursday May 05, 2016 @06:37PM
(#11640206)
The CLR doesn't have any bytecode interpreter that could get faster with this change. It's a JIT compiler that compiles the bytecode to native code.
Re:Introducing a new, advanced Visual C++ code optimizer
by micahbright on Friday May 06, 2016 @09:30AM
(#11643792)
Interpreter or not, the JIT compiler will certainly get faster with the c++ optimizations. The libraries that are linked against will get faster. The underlying OS components will get faster. Since .NET assemblies are mostly just glue code between framework code, which is mostly c++, everything should get a speedup out of this.