Click here to Skip to main content
15,887,420 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 4:36
mvahoney the codewitch22-Jan-24 4:36 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 11:09
trønderen22-Jan-24 11:09 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 11:46
mvahoney the codewitch22-Jan-24 11:46 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 12:07
trønderen22-Jan-24 12:07 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 12:10
mvahoney the codewitch22-Jan-24 12:10 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 13:04
trønderen22-Jan-24 13:04 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 13:24
mvahoney the codewitch22-Jan-24 13:24 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 12:35
trønderen22-Jan-24 12:35 
Another remark to micro-optimization:

In the 1990s, I was teaching basic computer architecture at a community college. To get a hands-on feeling of real registers and memory and such, the students did a few hand-ins of assembler coding. I was strongly stressing that we must strive to make code - especially assembler - as readable as possible. To zero the AX register, you move 0 into it: MOV AX, 0.

One of the students insisted that the proper way to zero AX is XOR AX, AX. No, I did not accept that; that is incomprehensible tribal language. The student insisted: But XOR is faster! So I brought him timing tables for both the 286 and 386 (our machines had 386s) to show him that the instructions took exactly the same number of clock cycles. He returned with timing diagrams for the 8086, showing that XOR would save 1 clock cycle on that processor. He wanted to write software running at maximum speed at all machines, even old 8086s! He was not willing to sacrifice a single clock cycle for the sake of more readable code!

So for the next homework problem, he handed in a listing headed by "This is how we are forced by the lecturer to program it:", and a very readable, neat solution. This was followed by a commented-out section: "And this is how real programmers do it:", with some really messy code.

I didn't care to uncomment the second alternative for the purpose of timing it.

Why did I come to think of this old memory right now?

Religious freedom is the freedom to say that two plus two make five.

GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 12:50
mvahoney the codewitch22-Jan-24 12:50 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 13:06
trønderen22-Jan-24 13:06 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 13:13
mvahoney the codewitch22-Jan-24 13:13 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 13:37
trønderen22-Jan-24 13:37 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 13:54
mvahoney the codewitch22-Jan-24 13:54 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
jschell22-Jan-24 5:58
jschell22-Jan-24 5:58 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 6:00
mvahoney the codewitch22-Jan-24 6:00 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 10:10
trønderen22-Jan-24 10:10 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 10:12
mvahoney the codewitch22-Jan-24 10:12 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 10:55
trønderen22-Jan-24 10:55 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
jschell23-Jan-24 5:26
jschell23-Jan-24 5:26 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch23-Jan-24 5:43
mvahoney the codewitch23-Jan-24 5:43 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen23-Jan-24 9:06
trønderen23-Jan-24 9:06 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
jschell24-Jan-24 4:38
jschell24-Jan-24 4:38 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Alister Morton22-Jan-24 22:59
Alister Morton22-Jan-24 22:59 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch23-Jan-24 3:29
mvahoney the codewitch23-Jan-24 3:29 
JokeRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
jschell23-Jan-24 5:27
jschell23-Jan-24 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.