Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Is it Possible to build a Processor which understands MSIL code.

Is it Possible to build a Processor which understands MSIL code.

Scheduled Pinned Locked Moved .NET (Core and Framework)
35 Posts 16 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V vytheese

    I think(dream) current branch prediction technique in CPU can be scaled to optimize the code. I think we won't design a unmanaged process. We can design a process which understands AppDomains. Which will track all the resource instance. ( Hope GC will be embedded in the BIOS itself too). Not sure If I am making clear.

    Regards, Vythees Miles to go before sleep...

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #4

    It's an interesting idea, but how do you go about ensuring that you can enhance the underlying platform? How do you separate out the runtime from the processor itself?

    I'm not a stalker, I just know things. Oh by the way, you're out of milk.

    Forgive your enemies - it messes with their heads

    My blog | My articles | MoXAML PowerToys | Onyx

    V 1 Reply Last reply
    0
    • P Pete OHanlon

      It's an interesting idea, but how do you go about ensuring that you can enhance the underlying platform? How do you separate out the runtime from the processor itself?

      I'm not a stalker, I just know things. Oh by the way, you're out of milk.

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      V Offline
      V Offline
      vytheese
      wrote on last edited by
      #5

      Hmm.., I need to backtrack from the idea of placing GC in Bios. Better It should be a managed OS which should be built purely by IL. Its could be like scaling a CLR itself to a complete OS. Hope when we build we don't have bussiness compulsion to support backward compatibility (16bit DOS PAC-Man game's) :)

      Regards, Vythees Miles to go before sleep...

      R 1 Reply Last reply
      0
      • V vytheese

        Note : This one is Extreme Hypothetical dream Is it possible to build a CPU that understands Itermediate Language straight away. ( No JIT, No unmanaged) What could be the blocking factor's if we can't take it to the next Consumer Electronic Show (CES) ;P

        Regards, Vythees Miles to go before sleep...

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #6

        I haven't heard of any serious attempt to create a CIL processor yet, and I don't expect any now. It would be very similar to a Java Bytecode Processor, see here[^]; I remember aJile was one of the first of those. Nothing much came from any of those AFAICR, as they did not find a sweat spot in the market while RISC processors and RISC technologies in general were making huge inroads in the processor market.

        Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

        V 1 Reply Last reply
        0
        • V vytheese

          Note : This one is Extreme Hypothetical dream Is it possible to build a CPU that understands Itermediate Language straight away. ( No JIT, No unmanaged) What could be the blocking factor's if we can't take it to the next Consumer Electronic Show (CES) ;P

          Regards, Vythees Miles to go before sleep...

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #7

          Should be possible. At least, there are CPU which can execute Java Bytecode.

          V 1 Reply Last reply
          0
          • L Luc Pattyn

            I haven't heard of any serious attempt to create a CIL processor yet, and I don't expect any now. It would be very similar to a Java Bytecode Processor, see here[^]; I remember aJile was one of the first of those. Nothing much came from any of those AFAICR, as they did not find a sweat spot in the market while RISC processors and RISC technologies in general were making huge inroads in the processor market.

            Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

            V Offline
            V Offline
            vytheese
            wrote on last edited by
            #8

            Thanks for the answer. I think a sweet spot may be certain middleware and asp.net appserver where pure performance in demand. Hope one day I could see one. ( Again. Sure I will not use ;) )

            Regards, Vythees Miles to go before sleep...

            L 1 Reply Last reply
            0
            • L Lost User

              Should be possible. At least, there are CPU which can execute Java Bytecode.

              V Offline
              V Offline
              vytheese
              wrote on last edited by
              #9

              Thanks. Almost broken my Immagination :)

              Regards, Vythees Miles to go before sleep...

              1 Reply Last reply
              0
              • V vytheese

                Thanks for the answer. I think a sweet spot may be certain middleware and asp.net appserver where pure performance in demand. Hope one day I could see one. ( Again. Sure I will not use ;) )

                Regards, Vythees Miles to go before sleep...

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #10

                You're welcome. :)

                Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                1 Reply Last reply
                0
                • V vytheese

                  Note : This one is Extreme Hypothetical dream Is it possible to build a CPU that understands Itermediate Language straight away. ( No JIT, No unmanaged) What could be the blocking factor's if we can't take it to the next Consumer Electronic Show (CES) ;P

                  Regards, Vythees Miles to go before sleep...

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #11

                  I couldn't care less about a processor that runs MSIL. The one I really want to see is the proc that can run encrypted code natively, without first decrypting it.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak

                  K 1 Reply Last reply
                  0
                  • V vytheese

                    Note : This one is Extreme Hypothetical dream Is it possible to build a CPU that understands Itermediate Language straight away. ( No JIT, No unmanaged) What could be the blocking factor's if we can't take it to the next Consumer Electronic Show (CES) ;P

                    Regards, Vythees Miles to go before sleep...

                    H Offline
                    H Offline
                    Henry Minute
                    wrote on last edited by
                    #12

                    There is a Paper on this at IEEExplore[^]. You have to be a subscriber to read it though. Unless you can find it elsewhere.

                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                    L 1 Reply Last reply
                    0
                    • H Henry Minute

                      There is a Paper on this at IEEExplore[^]. You have to be a subscriber to read it though. Unless you can find it elsewhere.

                      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                      L Offline
                      L Offline
                      Luc Pattyn
                      wrote on last edited by
                      #13

                      Henry Minute wrote:

                      You have to be a subscriber to read it though

                      and are you?

                      Henry Minute wrote:

                      Unless you can find it elsewhere.

                      Wouldn't that breach the copyright? :)

                      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                      H 1 Reply Last reply
                      0
                      • L Luc Pattyn

                        Henry Minute wrote:

                        You have to be a subscriber to read it though

                        and are you?

                        Henry Minute wrote:

                        Unless you can find it elsewhere.

                        Wouldn't that breach the copyright? :)

                        Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                        H Offline
                        H Offline
                        Henry Minute
                        wrote on last edited by
                        #14

                        Luc Pattyn wrote:

                        and are you?

                        Nope. :( Apart from CP I don't subscribe to anything that would allow someone like me to subscribe.

                        Luc Pattyn wrote:

                        Wouldn't that breach the copyright?

                        Possibly, although not certainly. Posilutely, maybe.

                        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                        L 1 Reply Last reply
                        0
                        • H Henry Minute

                          Luc Pattyn wrote:

                          and are you?

                          Nope. :( Apart from CP I don't subscribe to anything that would allow someone like me to subscribe.

                          Luc Pattyn wrote:

                          Wouldn't that breach the copyright?

                          Possibly, although not certainly. Posilutely, maybe.

                          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                          L Offline
                          L Offline
                          Luc Pattyn
                          wrote on last edited by
                          #15

                          you're mayhapsily right. :) PS: a second L is optional. PS2: and you sound like Jumbo Marx.

                          Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                          Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                          H 1 Reply Last reply
                          0
                          • L Luc Pattyn

                            you're mayhapsily right. :) PS: a second L is optional. PS2: and you sound like Jumbo Marx.

                            Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                            Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                            H Offline
                            H Offline
                            Henry Minute
                            wrote on last edited by
                            #16

                            A games console with a stutter?

                            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                            L 1 Reply Last reply
                            0
                            • H Henry Minute

                              A games console with a stutter?

                              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                              L Offline
                              L Offline
                              Luc Pattyn
                              wrote on last edited by
                              #17

                              No, an elephant doing a Groucho Marx joke. :)

                              Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                              Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                              H 1 Reply Last reply
                              0
                              • L Luc Pattyn

                                No, an elephant doing a Groucho Marx joke. :)

                                Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                                Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                                H Offline
                                H Offline
                                Henry Minute
                                wrote on last edited by
                                #18

                                I was actually referring to the PS...PS2 bit. :)

                                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                                L 1 Reply Last reply
                                0
                                • H Henry Minute

                                  I was actually referring to the PS...PS2 bit. :)

                                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                                  L Offline
                                  L Offline
                                  Luc Pattyn
                                  wrote on last edited by
                                  #19

                                  and Jumbo, they used to sell puzzles around here (just like MB), and more. :)

                                  Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                                  Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                                  H 1 Reply Last reply
                                  0
                                  • L Luc Pattyn

                                    and Jumbo, they used to sell puzzles around here (just like MB), and more. :)

                                    Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                                    Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                                    H Offline
                                    H Offline
                                    Henry Minute
                                    wrote on last edited by
                                    #20

                                    Ah, not heard of that/them.

                                    Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                                    L 1 Reply Last reply
                                    0
                                    • H Henry Minute

                                      Ah, not heard of that/them.

                                      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus!

                                      L Offline
                                      L Offline
                                      Luc Pattyn
                                      wrote on last edited by
                                      #21

                                      FYI[^] :)

                                      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                                      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                                      1 Reply Last reply
                                      0
                                      • V vytheese

                                        Hmm.., I need to backtrack from the idea of placing GC in Bios. Better It should be a managed OS which should be built purely by IL. Its could be like scaling a CLR itself to a complete OS. Hope when we build we don't have bussiness compulsion to support backward compatibility (16bit DOS PAC-Man game's) :)

                                        Regards, Vythees Miles to go before sleep...

                                        R Offline
                                        R Offline
                                        Rob Grainger
                                        wrote on last edited by
                                        #22

                                        Have you checked out Singularity at MS Research. It doesn't run MSIL natively, but is a completely CLR(ish) O/S, with many improvements. Very Radical. Singularity[^]

                                        W 1 Reply Last reply
                                        0
                                        • P Pete OHanlon

                                          Theoretically, it would be possible. However, if you removed JIT from the equation, for instance, how would you expect the application to be optimised? If you remove unmanaged, then how do you expect to accomplish tasks such as file writing?

                                          I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                                          Forgive your enemies - it messes with their heads

                                          My blog | My articles | MoXAML PowerToys | Onyx

                                          P Offline
                                          P Offline
                                          peterchen
                                          wrote on last edited by
                                          #23

                                          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

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups