Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: Declaring variables inside loops - inefficient? Pin
Luc Pattyn19-Jul-10 5:37
sitebuilderLuc Pattyn19-Jul-10 5:37 
AnswerRe: Declaring variables inside loops - inefficient? Pin
Keith Barrow19-Jul-10 5:44
professionalKeith Barrow19-Jul-10 5:44 
GeneralRe: Declaring variables inside loops - inefficient? Pin
Adam Brown 319-Jul-10 5:53
Adam Brown 319-Jul-10 5:53 
GeneralRe: Declaring variables inside loops - inefficient? Pin
harold aptroot19-Jul-10 5:54
harold aptroot19-Jul-10 5:54 
GeneralRe: Declaring variables inside loops - inefficient? [modified] Pin
Keith Barrow19-Jul-10 6:05
professionalKeith Barrow19-Jul-10 6:05 
GeneralRe: Declaring variables inside loops - inefficient? Pin
harold aptroot19-Jul-10 6:18
harold aptroot19-Jul-10 6:18 
GeneralRe: Declaring variables inside loops - inefficient? Pin
Keith Barrow19-Jul-10 6:35
professionalKeith Barrow19-Jul-10 6:35 
GeneralRe: Declaring variables inside loops - inefficient? Pin
harold aptroot19-Jul-10 6:52
harold aptroot19-Jul-10 6:52 
I don't know about articles.. I just took a look at the disassembly window in the debugger, and at the MSIL view in the Reflector
Local variables are "destroyed" (that is, they will be at a lower address than ESP) in the function epilogue, temporary variables (from expression evaluation) in MSIL live on the operand stack and in the Actual* Code they are in registers (unless there are too many, then they get some stack space as well)

* But all that is still based on the "JIT without optimizations" since I can't figure out how to get the real, optimized, code. I've tried doing a kernel32@DebugBreak but then it refuses to debug any managed code and gets stuck in some native stack frames..
GeneralRe: Declaring variables inside loops - inefficient? Pin
Luc Pattyn19-Jul-10 6:52
sitebuilderLuc Pattyn19-Jul-10 6:52 
GeneralRe: Declaring variables inside loops - inefficient? Pin
Pete O'Hanlon19-Jul-10 6:54
mvePete O'Hanlon19-Jul-10 6:54 
AnswerRe: Declaring variables inside loops - inefficient? Pin
Luc Pattyn19-Jul-10 7:04
sitebuilderLuc Pattyn19-Jul-10 7:04 
Questionreading weather.com data feed Pin
Jassim Rahma19-Jul-10 5:07
Jassim Rahma19-Jul-10 5:07 
AnswerRe: reading weather.com data feed Pin
Eddy Vluggen19-Jul-10 5:20
professionalEddy Vluggen19-Jul-10 5:20 
AnswerRe: reading weather.com data feed Pin
brunoseixas19-Jul-10 6:58
brunoseixas19-Jul-10 6:58 
QuestionRtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 4:45
Night Lol19-Jul-10 4:45 
AnswerRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Luc Pattyn19-Jul-10 5:00
sitebuilderLuc Pattyn19-Jul-10 5:00 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 5:14
Night Lol19-Jul-10 5:14 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
DaveyM6919-Jul-10 5:31
professionalDaveyM6919-Jul-10 5:31 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 5:51
Night Lol19-Jul-10 5:51 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
DaveyM6919-Jul-10 7:46
professionalDaveyM6919-Jul-10 7:46 
AnswerRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Luc Pattyn19-Jul-10 5:33
sitebuilderLuc Pattyn19-Jul-10 5:33 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 5:52
Night Lol19-Jul-10 5:52 
QuestionUnable to reference shared assembly in GAC [modified] Solved Pin
Jonathan Davies19-Jul-10 2:30
Jonathan Davies19-Jul-10 2:30 
AnswerRe: Unable to reference shared assembly in GAC Pin
PIEBALDconsult19-Jul-10 3:13
mvePIEBALDconsult19-Jul-10 3:13 
GeneralRe: Unable to reference shared assembly in GAC Pin
Jonathan Davies19-Jul-10 4:02
Jonathan Davies19-Jul-10 4:02 

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.