3 ms·
C++/CLI is one example, it is C++, not C, but example holds.
by pjmlp 2y ago
C++/CLI is one example, it is C++, not C, but example holds.
- do_not_redeem 2y agoNow the money question: can anyone come up with a benchmark where, due to the JIT, C++/CLI runs faster than normal C++ compiled for the same CPU?
- bjoli 2y agoWriting a program where a jit version is faster than the aot version is just an exercise in knowing the limitations of AOT. People have been doing runtime code generation for a very long time for exactly this reason. A general implementation faster than, say, g++ is a completely different beast.
- zabzonk 2y agoIt is not C++ (or C) but a Microsoft invented language - which is OK, but don't confuse it with C++ anymore than MS have already done
- pjmlp 2y agoI love how folks worship GCC and clang compiler extensions as C and C++ or UNIX compiler vendors in general, including embedded RTOS toolchains, but when Microsoft does it, for whatever reason doesn't count. Two weights, two measures.
- zabzonk 2y agoI certainly don't "worship" any compiler, and am pretty quick to point out non-standard extensions in people's code. But C++/CLI goes far, far beyond extensions, and becomes a completely different language to C++, both syntactically and semantically.
- pjmlp 2y agoJust like Linux kernel can only be compiled with GCC, or compilers that equally implement the same language extensions that aren't at all C, not being part of C23 ISO/IEC 9899:2024, including compiler switches that change C semantics as strict provenance. If you want to further discuss what is what, lets see how up to date is your ISO knowledge, versus the plethora of extensions across C and C++ compilers.