clr

Books and literature for implementing a language on the CLR [closed]

亡梦爱人 提交于 2019-12-03 09:48:59
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. I'm looking for books and literature on the inner workings of the CLR (and/or possibly the DLR), my long time goal is to implement a simple language on the CLR. A few starters for the CLR: CLR via C# (soon to have an update for v4) (Jeff Richter) ECMA 335

How do garbage collectors know about references on the stack frame?

岁酱吖の 提交于 2019-12-03 09:33:01
问题 What techniques do modern garbage collectors (as in CLR, JVM) use to tell which heap objects are referenced from the stack? Specifically how can a VM work back from knowing where the stack starts to interpreting all local references to heap objects? 回答1: In Java (and likely in the CLR although I know its internals less well), the bytecode is typed with object vs primitive information. As a result, there are data structures in the bytecode that describe which variables in each stack frame are

Can anyone give me a REALLY good reason to use CLR type names instead of C# type names (aliases) in code (as a general practice)? [closed]

℡╲_俬逩灬. 提交于 2019-12-03 09:04:49
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . We have a bit of a battle going on in our development team over this. I would love to hear what others think about this. 回答1: In the

Cpython interpretter / IronPython interpretter No module named clr

不打扰是莪最后的温柔 提交于 2019-12-03 09:03:54
i'm using IronPython and i want to create some windows form, i want to create a windows form with some button, and i want to do this in visual studio with iron python, i'm using visual studio 2012 integrated edition, each time i create an "ironpython windows form" project, when i want to run it, it says: The project is currently set to use the .NET debugger for IronPython debugging but the project is configured to start with a CPython interpreter. To fix this change the debugger type in project properties->Debug->Launch mode when i change debugger to Standard Python Launcher, it says:

Where exactly is .NET Runtime (CLR), JIT Compiler located?

落花浮王杯 提交于 2019-12-03 08:42:50
问题 This question might look a bit foolish or odd but I have heard a lot of about .NET CLR, JIT compiler and how it works blah blah blah... But now I am wondering where exactly it is located or hosted. Is it - Hosted as a part of Windows Operating system when we actually install .NET Framework? OR It is a part of some .exe which we can see in task manager I am looking for the detailed answer on this. Someone might frame this question as "How Windows Operating System triggers/executes .NET

Is mscorlib.dll a CLR?

那年仲夏 提交于 2019-12-03 08:25:57
If it's not which I almost sure in, then what's the role of mscorlib.dll and where CLR is situated? Aliostad CLR is not in mscorlib.dll but in MSCorEE.dll . I think that is what you were looking for. This is the main DLL loaded when an .NET exe assembly gets loaded. See this question which probably answers you question. Kieren Johnstone I believe this question covers most of what you're asking: mscorlib.dll & System.dll mscorlib.dll is holding some fundamental classes of .net such as system. use reflector to what classes and namespaces mscorlib.dll is carrying. also your could find information

Does threadpool get shared between application domains?

久未见 提交于 2019-12-03 07:58:50
问题 Consider a process which is creating multiple application domains. Do these Application domains share same thread pool? If yes, how is it coordinated between multiple application domains? 回答1: The ThreadPool is shared across all appdomains - since that means threads might end up switching between appdomains (potentially often!) there's been perf work around that: http://blogs.msdn.com/b/ericeil/archive/2009/04/23/clr-4-0-threadpool-improvements-part-1.aspx [...] In fact, we violate this “rule

Can WinDBG be made to find mscordacwks.dll in the symbol store?

一笑奈何 提交于 2019-12-03 07:37:20
The Question There are plenty of manual ways to make WinDBG find mscordacwks.dll without a symbol store (putting the file in the path somewhere, putting it in the same folder as windbg.exe, putting it in my Framework\v folder, specifying the path in WinDBG using .cordll -lp c:\dacFolder , etc.), but they all only fix it for me . I need to fix it more generally for everyone who uses my symbol store . The possible solutions I can imagine are: WinDBG be made to check the symbol store using mscordacwks.dll's subfolder name instead of mscorwks.dll's folder name. SymStore.exe be made to add

How the CLR locates pdb symbol files

三世轮回 提交于 2019-12-03 06:56:10
I would like to know how the CLR locates pdb symbol files, and if this behavior can be overridden. I looked online (MSDN and other resources) but could not find a good answer. In my app, i have DLLs placed in several subdirectories of the main .EXE path. I would like to have a Symbols\ dir that will contain all symbols for my application. By default, i believe that symbols are picked up from where the assembly is. Can this be changed? You could simply set the _NT_SYMBOL_PATH environment variable for your own process. This worked well: using System; using System.Runtime.CompilerServices; using

How can I view the disassembly of optimised jitted .NET code?

[亡魂溺海] 提交于 2019-12-03 06:42:28
问题 For one reason or another, I sometimes find it useful or just interesting to look at the optimised compiler output for a function. For unmanaged C/C++ code, my favourite way to do this has been to compile in Release mode, stick a breakpoint in the function of interest, run, and view the disassembly in Visual Studio when it hits the breakpoint. I recently tried this with a C# project and discovered that that technique doesn't work. Even in Release mode, the disassembly I see is obviously not