Click here to Skip to main content
15,909,593 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.

 
Generalwife bought a new TV Pin
lopatir13-Dec-19 20:49
lopatir13-Dec-19 20:49 
GeneralRe: wife bought a new TV Pin
OriginalGriff13-Dec-19 21:18
mveOriginalGriff13-Dec-19 21:18 
GeneralRe: wife bought a new TV Pin
RickZeeland13-Dec-19 22:36
mveRickZeeland13-Dec-19 22:36 
GeneralRe: wife bought a new TV Pin
OriginalGriff13-Dec-19 23:55
mveOriginalGriff13-Dec-19 23:55 
GeneralRe: wife bought a new TV Pin
Mark_Wallace14-Dec-19 20:56
Mark_Wallace14-Dec-19 20:56 
GeneralRe: wife bought a new TV Pin
dandy7214-Dec-19 12:31
dandy7214-Dec-19 12:31 
GeneralRe: wife bought a new TV Pin
lopatir14-Dec-19 19:33
lopatir14-Dec-19 19:33 
GeneralOn Jitting and virtual calls Pin
honey the codewitch13-Dec-19 20:43
mvahoney the codewitch13-Dec-19 20:43 
I have no idea how to reliably examine post JIT'd asm in .NET - I haven't really tried yet, but I would be really interested to know how it handles forwarded virtual calls that don't change the stack frame and don't do anything other than forward.

Some methods can be resolved using a jump because all they do is forward calls to another method.

This can happen a lot in OOP when you have base classes calling derived classes through virtual functions.

In those cases, instead of doing two jumps to get to the final method, such that target->base->derived, it could know just to do target->derived directly?

I'm inclined to believe it won't, for reasons, but if it did it would be a fine excuse to go really deep with your derived classes.

I was wondering because I'm rewriting some tokenizer code and I was thinking of going two levels deep in my derived classes (again for reasons) but tokenizers shouldn't waste clock cycles they don't need to waste. (It's bad enough writing one in C#)

Edit: Never mind. I was out of my head. You can't describe what I'm trying to describe in such a way that the vtbl already has the forwarded calls in it anway. I wasn't thinking straight. Smile | :)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.


modified 14-Dec-19 3:25am.

GeneralRe: On Jitting and virtual calls Pin
harold aptroot13-Dec-19 21:19
harold aptroot13-Dec-19 21:19 
GeneralRe: On Jitting and virtual calls Pin
honey the codewitch13-Dec-19 21:24
mvahoney the codewitch13-Dec-19 21:24 
GeneralRe: On Jitting and virtual calls Pin
Jörgen Andersson13-Dec-19 23:06
professionalJörgen Andersson13-Dec-19 23:06 
GeneralRe: On Jitting and virtual calls Pin
honey the codewitch13-Dec-19 23:07
mvahoney the codewitch13-Dec-19 23:07 
GeneralNothing to do with computers, or development, but ... the headline just cracks me up Pin
OriginalGriff13-Dec-19 11:37
mveOriginalGriff13-Dec-19 11:37 
GeneralRe: Nothing to do with computers, or development, but ... the headline just cracks me up Pin
Super Lloyd13-Dec-19 14:31
Super Lloyd13-Dec-19 14:31 
GeneralRe: Nothing to do with computers, or development, but ... the headline just cracks me up Pin
honey the codewitch13-Dec-19 20:37
mvahoney the codewitch13-Dec-19 20:37 
GeneralRe: Nothing to do with computers, or development, but ... the headline just cracks me up Pin
devenv.exe13-Dec-19 21:10
professionaldevenv.exe13-Dec-19 21:10 
GeneralRe: Nothing to do with computers, or development, but ... the headline just cracks me up Pin
Mycroft Holmes14-Dec-19 12:02
professionalMycroft Holmes14-Dec-19 12:02 
Generalnow this is a change Pin
lopatir13-Dec-19 5:45
lopatir13-Dec-19 5:45 
GeneralRe: now this is a change Pin
CodeWraith13-Dec-19 6:11
CodeWraith13-Dec-19 6:11 
GeneralARGHHH! But it worked when it was broken Pin
honey the codewitch13-Dec-19 4:58
mvahoney the codewitch13-Dec-19 4:58 
GeneralRe: ARGHHH! But it worked when it was broken Pin
Greg Utas13-Dec-19 7:12
professionalGreg Utas13-Dec-19 7:12 
GeneralRe: ARGHHH! But it worked when it was broken Pin
  Forogar  13-Dec-19 7:58
professional  Forogar  13-Dec-19 7:58 
GeneralRe: ARGHHH! But it worked when it was broken Pin
Greg Utas13-Dec-19 8:15
professionalGreg Utas13-Dec-19 8:15 
GeneralThought of the Day Pin
OriginalGriff13-Dec-19 4:55
mveOriginalGriff13-Dec-19 4:55 
GeneralRe: Thought of the Day Pin
W Balboos, GHB13-Dec-19 5:04
W Balboos, GHB13-Dec-19 5:04 

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.