Click here to Skip to main content
15,887,256 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 codewitch21-Jan-24 0:17
mvahoney the codewitch21-Jan-24 0:17 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Jacquers21-Jan-24 17:37
Jacquers21-Jan-24 17:37 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch21-Jan-24 23:04
mvahoney the codewitch21-Jan-24 23:04 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Stuart Dootson22-Jan-24 1:24
professionalStuart Dootson22-Jan-24 1:24 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 4:37
mvahoney the codewitch22-Jan-24 4:37 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Simbosan21-Jan-24 20:02
Simbosan21-Jan-24 20:02 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch21-Jan-24 23:03
mvahoney the codewitch21-Jan-24 23:03 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 10:18
trønderen22-Jan-24 10:18 
If you make a question about some super-fine peephole optimization, an answer that says "Trying to do anything like that is a waste of your time" is an appropriate answer.

Years ago, I could spend days timing and fine-tuning code, testing out various inline assembly variants. Gradually, I came to realize that the compiler would beat me almost every time. Instructions sequences that "looked like" being inefficient, actually run faster when I timed it.

Since those days, CPUs have gotten even bigger caches, more lookahead, hyperthreading and whathaveyou, all confusing tight timing loops to the degree of making them useless. Writing (or generating) assembler code to suppress single instructions was meaningful in the days of true RISCs (including pre-1975 architectures when all machines were RISCs...) running at 1 instruction/cycle with (almost) no exception. Today, we are in a different world.

I really should have spent the time to assembler code the example you bring up, with and without the repeated register load, and time them for you. But I have a very strong gut feeling of what it would show. I am so certain that I do not spend the time to do that for you.

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 10:20
mvahoney the codewitch22-Jan-24 10:20 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 10:43
trønderen22-Jan-24 10:43 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Chris Copeland22-Jan-24 3:29
mveChris Copeland22-Jan-24 3:29 
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 
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 

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.