Click here to Skip to main content
16,006,709 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionIs it Possible to build a Processor which understands MSIL code. PinPopular
vytheese13-Jan-11 0:46
professionalvytheese13-Jan-11 0:46 
AnswerRe: Is it Possible to build a Processor which understands MSIL code. Pin
Pete O'Hanlon13-Jan-11 0:51
mvePete O'Hanlon13-Jan-11 0:51 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
vytheese13-Jan-11 0:59
professionalvytheese13-Jan-11 0:59 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Pete O'Hanlon13-Jan-11 1:02
mvePete O'Hanlon13-Jan-11 1:02 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
vytheese13-Jan-11 1:12
professionalvytheese13-Jan-11 1:12 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Rob Grainger13-Jan-11 22:38
Rob Grainger13-Jan-11 22:38 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Wesley Harris16-Jan-11 22:16
Wesley Harris16-Jan-11 22:16 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
peterchen14-Jan-11 1:57
peterchen14-Jan-11 1:57 
Goooood questions.

Modern processors decode opcodes into microcode when loading code into the CPU cache (at least, last time I checked. Those buggers change so fast!)
That would be a decent place for optimizaitons, though I agree it's not fun to throw that away.

But then, there are two things:

- the code in the cache can be optimized to current calling conditions
- optimizations independent of calling conditions can be written back to the in-memory code


For the second, you need some "SystemLevel" code that allows unsafe operations, e.g. ILProcessor.Primitives.Out(portNumber, Value). It needs to be different from .NET's "unsafe" in that you can declare infection stoppage - i.e. "this class is a safe wrapper around its unsafe operations".

Implementing the optimizations in hardware would probably be painfully stupid. However, the write-back-optimizations need to be done only once, and can be done in "native" code. State dependent on-the-fly optimizations could be done in a small "helper CPU" running some hardwired FORTRAN code.
FILETIME to time_t

| FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

AnswerRe: Is it Possible to build a Processor which understands MSIL code. Pin
Luc Pattyn13-Jan-11 1:43
sitebuilderLuc Pattyn13-Jan-11 1:43 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
vytheese13-Jan-11 2:25
professionalvytheese13-Jan-11 2:25 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Luc Pattyn13-Jan-11 2:40
sitebuilderLuc Pattyn13-Jan-11 2:40 
AnswerRe: Is it Possible to build a Processor which understands MSIL code. Pin
Member 725873413-Jan-11 1:48
Member 725873413-Jan-11 1:48 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
vytheese13-Jan-11 2:27
professionalvytheese13-Jan-11 2:27 
AnswerRe: Is it Possible to build a Processor which understands MSIL code. Pin
Dave Kreskowiak13-Jan-11 3:44
mveDave Kreskowiak13-Jan-11 3:44 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Kirk Wood15-Jan-11 2:03
Kirk Wood15-Jan-11 2:03 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Dave Kreskowiak15-Jan-11 4:30
mveDave Kreskowiak15-Jan-11 4:30 
AnswerRe: Is it Possible to build a Processor which understands MSIL code. Pin
Henry Minute13-Jan-11 5:21
Henry Minute13-Jan-11 5:21 
QuestionRe: Is it Possible to build a Processor which understands MSIL code. Pin
Luc Pattyn13-Jan-11 6:24
sitebuilderLuc Pattyn13-Jan-11 6:24 
AnswerRe: Is it Possible to build a Processor which understands MSIL code. Pin
Henry Minute13-Jan-11 6:35
Henry Minute13-Jan-11 6:35 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Luc Pattyn13-Jan-11 6:47
sitebuilderLuc Pattyn13-Jan-11 6:47 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Henry Minute13-Jan-11 6:53
Henry Minute13-Jan-11 6:53 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Luc Pattyn13-Jan-11 6:59
sitebuilderLuc Pattyn13-Jan-11 6:59 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Henry Minute13-Jan-11 7:27
Henry Minute13-Jan-11 7:27 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Luc Pattyn13-Jan-11 7:41
sitebuilderLuc Pattyn13-Jan-11 7:41 
GeneralRe: Is it Possible to build a Processor which understands MSIL code. Pin
Henry Minute13-Jan-11 8:06
Henry Minute13-Jan-11 8:06 

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.