cil - Write MSIL interpreter - how to describe operational semantics? -


i want write msil interpreter using mono cecil parsing interpretation want yourself. i've seen lot of examples expression only. how describe operational semantics msil? dont know how start task advice valuable.

simplifying lot, need stack frames call stack each contain local variables , local stack necessary each method. can implemented in flat stack, in case you'd have keep track of return pointers , current offset variable-io.
opcodes documentation should give overview on how cil code interacts structure.

interpreting complete executables quite bit more involved due special cases - you'd have reimplement part of runtime (and framework, methods need cooperation runtime) , the relevant specification spans few hundred pages.

you have @ mono source code, lot more involved want due running natively.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -