473,486 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reading MSIL

Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the wrong
spots for the wrong keywords. I understand mov, call, jmp, ptr, dword and
some of the other obvious pieces. I'm looking to understand some of the
less obvious pieces of MSIL so I can better understand how my code is being
constructed in release mode.

TIA,

Raymond Lewallen
Federal Aviation Administration
Nov 20 '05 #1
9 1171
Sorry, should have mentioned that I've searched my entire hard drive for two
files I was told I should have: Partition II Metadata.doc and Partition III
CIL.doc, neither of which I can find.

Raymond Lewallen

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:OT*************@TK2MSFTNGP10.phx.gbl...
Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the wrong spots for the wrong keywords. I understand mov, call, jmp, ptr, dword and
some of the other obvious pieces. I'm looking to understand some of the
less obvious pieces of MSIL so I can better understand how my code is being constructed in release mode.

TIA,

Raymond Lewallen
Federal Aviation Administration

Nov 20 '05 #2

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:OT*************@TK2MSFTNGP10.phx.gbl...
Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the wrong spots for the wrong keywords. I understand mov, call, jmp, ptr, dword and
some of the other obvious pieces. I'm looking to understand some of the
less obvious pieces of MSIL so I can better understand how my code is being constructed in release mode.

TIA,

Raymond Lewallen
Federal Aviation Administration

This is probably far less than what you were hoping for, but this will help
you understand MSIL:

http://msdn.microsoft.com/library/de...m_tutorial.asp

It's a tutorial for the MSIL disassembler.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 20 '05 #3

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Sorry, should have mentioned that I've searched my entire hard drive for
two
files I was told I should have: Partition II Metadata.doc and Partition
III
CIL.doc, neither of which I can find.
They should be in the <visual studio install folder>\SDK\v1.1\Tool
Developers Guide\docs.

Beyond that, the syntax you showed looks more like x86 assembly, not MSIL.
How are you viewing the IL?
Raymond Lewallen

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:OT*************@TK2MSFTNGP10.phx.gbl...
Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the

wrong
spots for the wrong keywords. I understand mov, call, jmp, ptr, dword
and
some of the other obvious pieces. I'm looking to understand some of the
less obvious pieces of MSIL so I can better understand how my code is

being
constructed in release mode.

TIA,

Raymond Lewallen
Federal Aviation Administration


Nov 20 '05 #4
ILDASM.EXE is what I used to look at the disassembled code.. I see lots of
ldarg, callvirt, idc.i4.x, nop.... i know what these are, i think, load
arguments to the stack, callvirt is obvious, idc.14.x i have no idea, nop
seems to do nothing, as its always a blank line. I'll have someone with
..NET installed send me these files, or look for them off my installation
CD's.

Thanks,

Raymond Lewallen

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:Og****************@TK2MSFTNGP09.phx.gbl...

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Sorry, should have mentioned that I've searched my entire hard drive for
two
files I was told I should have: Partition II Metadata.doc and Partition
III
CIL.doc, neither of which I can find.


They should be in the <visual studio install folder>\SDK\v1.1\Tool
Developers Guide\docs.

Beyond that, the syntax you showed looks more like x86 assembly, not MSIL.
How are you viewing the IL?

Raymond Lewallen

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message news:OT*************@TK2MSFTNGP10.phx.gbl...
Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the

wrong
spots for the wrong keywords. I understand mov, call, jmp, ptr, dword
and
some of the other obvious pieces. I'm looking to understand some of the less obvious pieces of MSIL so I can better understand how my code is

being
constructed in release mode.

TIA,

Raymond Lewallen
Federal Aviation Administration



Nov 20 '05 #5

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:Og**************@tk2msftngp13.phx.gbl...
ILDASM.EXE is what I used to look at the disassembled code.. I see lots
of
ldarg, callvirt, idc.i4.x, nop.... i know what these are, i think, load
arguments to the stack, callvirt is obvious, idc.14.x i have no idea, nop
seems to do nothing, as its always a blank line. I'll have someone with nop is literally "no op". Its an instruction that does nothing. VB tends to
insert more than C#, but the JIT will probably dump 'em.

ldc.i4.x loads the value of x onto the evaluation stack. There are other
forms of the instruction which goes beyond 9(or whatever the limit is).

Another option might be the framework SDK documentation, look up the OpCodes
class it has a list of opcodes and descriptions which might be
helpful(replace .'s with _ though). .NET installed send me these files, or look for them off my installation
CD's.

Thanks,

Raymond Lewallen

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:Og****************@TK2MSFTNGP09.phx.gbl...

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> Sorry, should have mentioned that I've searched my entire hard drive
> for
> two
> files I was told I should have: Partition II Metadata.doc and
> Partition
> III
> CIL.doc, neither of which I can find.


They should be in the <visual studio install folder>\SDK\v1.1\Tool
Developers Guide\docs.

Beyond that, the syntax you showed looks more like x86 assembly, not
MSIL.
How are you viewing the IL?
>
> Raymond Lewallen
>
> "Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message > news:OT*************@TK2MSFTNGP10.phx.gbl...
>> Is there some article out there that helps in reading MSIL? I've been
>> looking but can't find anything, and I'm probably just looking in the
> wrong
>> spots for the wrong keywords. I understand mov, call, jmp, ptr, dword
>> and
>> some of the other obvious pieces. I'm looking to understand some of the >> less obvious pieces of MSIL so I can better understand how my code is
> being
>> constructed in release mode.
>>
>> TIA,
>>
>> Raymond Lewallen
>> Federal Aviation Administration
>>
>>
>
>



Nov 20 '05 #6
Hi,

just want to mention that our LSW DotNet-Lab will contain automatically
rendered Graphical-MSIL
www.lesser-software.com/lswdnl.htm - general information
http://www.lesser-software.com/en/co...t-Tools/LSW%20
DotNet-Reflection-Browser/LSW%20Diagrammer.htm
Diagrammer which can convert MSIL into a Graphical format ( EMF,
HTML/VML ) see MSIL Visual Syntax http://www.lesser-software.com/image...ools/LSW-DNRB/
1.2/HTML-VML/BranchConcurrency.html
latest sample automatically rendered Framework Method containing a switch
statement.

with best regards, Frank Lesser, www.lesser-software.com
"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:Og**************@tk2msftngp13.phx.gbl... ILDASM.EXE is what I used to look at the disassembled code.. I see lots of ldarg, callvirt, idc.i4.x, nop.... i know what these are, i think, load
arguments to the stack, callvirt is obvious, idc.14.x i have no idea, nop
seems to do nothing, as its always a blank line. I'll have someone with
.NET installed send me these files, or look for them off my installation
CD's.

Thanks,

Raymond Lewallen

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:Og****************@TK2MSFTNGP09.phx.gbl...

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Sorry, should have mentioned that I've searched my entire hard drive for two
files I was told I should have: Partition II Metadata.doc and Partition III
CIL.doc, neither of which I can find.


They should be in the <visual studio install folder>\SDK\v1.1\Tool
Developers Guide\docs.

Beyond that, the syntax you showed looks more like x86 assembly, not MSIL. How are you viewing the IL?

Raymond Lewallen

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in

message news:OT*************@TK2MSFTNGP10.phx.gbl...
> Is there some article out there that helps in reading MSIL? I've been> looking but can't find anything, and I'm probably just looking in the
wrong
> spots for the wrong keywords. I understand mov, call, jmp, ptr, dword> and
> some of the other obvious pieces. I'm looking to understand some of the> less obvious pieces of MSIL so I can better understand how my code is
being
> constructed in release mode.
>
> TIA,
>
> Raymond Lewallen
> Federal Aviation Administration
>
>



Nov 20 '05 #7
On Tue, 1 Jun 2004 17:35:02 -0500, Raymond Lewallen wrote:
Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the wrong


I would recommend "Inside Microsoft .Net IL Assembler", by Serge Lidin,
Microsoft Press, ISBN: 0-7356-1547-0

--
Chris

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 20 '05 #8

http://blog.dotnetwiki.org/archive/2004/05/11/198.aspx

Apparently this is available as a Reflector add-in and it is free.

"Frank Lesser [LSW]" <Fr**********@lesser-software.com> wrote in message
news:uE*************@TK2MSFTNGP11.phx.gbl...
Hi,

just want to mention that our LSW DotNet-Lab will contain automatically
rendered Graphical-MSIL
www.lesser-software.com/lswdnl.htm - general information

http://www.lesser-software.com/en/co...t-Tools/LSW%20 DotNet-Reflection-Browser/LSW%20Diagrammer.htm
Diagrammer which can convert MSIL into a Graphical format ( EMF,
HTML/VML ) see MSIL Visual Syntax

http://www.lesser-software.com/image...ools/LSW-DNRB/ 1.2/HTML-VML/BranchConcurrency.html
latest sample automatically rendered Framework Method containing a switch
statement.

with best regards, Frank Lesser, www.lesser-software.com
"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message
news:Og**************@tk2msftngp13.phx.gbl...
ILDASM.EXE is what I used to look at the disassembled code.. I see lots

of
ldarg, callvirt, idc.i4.x, nop.... i know what these are, i think, load
arguments to the stack, callvirt is obvious, idc.14.x i have no idea, nop
seems to do nothing, as its always a blank line. I'll have someone with
.NET installed send me these files, or look for them off my installation
CD's.

Thanks,

Raymond Lewallen

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:Og****************@TK2MSFTNGP09.phx.gbl...

"Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
> Sorry, should have mentioned that I've searched my entire hard drive for > two
> files I was told I should have: Partition II Metadata.doc and Partition > III
> CIL.doc, neither of which I can find.

They should be in the <visual studio install folder>\SDK\v1.1\Tool
Developers Guide\docs.

Beyond that, the syntax you showed looks more like x86 assembly, not MSIL. How are you viewing the IL?
>
> Raymond Lewallen
>
> "Raymond Lewallen" <Ra******************@nospam.faa.gov> wrote in

message
> news:OT*************@TK2MSFTNGP10.phx.gbl...
>> Is there some article out there that helps in reading MSIL? I've been >> looking but can't find anything, and I'm probably just looking in the > wrong
>> spots for the wrong keywords. I understand mov, call, jmp, ptr, dword >> and
>> some of the other obvious pieces. I'm looking to understand some of the
>> less obvious pieces of MSIL so I can better understand how my code

is > being
>> constructed in release mode.
>>
>> TIA,
>>
>> Raymond Lewallen
>> Federal Aviation Administration
>>
>>
>
>



Nov 20 '05 #9
Nice. Thanks for the tip.
Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
4541
by: Raymond Lewallen | last post by:
Is there some article out there that helps in reading MSIL? I've been looking but can't find anything, and I'm probably just looking in the wrong spots for the wrong keywords. I understand mov,...
6
2926
by: TrickyDicky | last post by:
Hi all, I'm just starting to experiment with MSIL but am getting confused about c# and MSIL integration. I understand that c# is compiled into MSIL before it is JIT'ed and then executed. I...
6
1989
by: Pawel | last post by:
Ary you know tools to convert MSIL code (Assembly) to Win32 (not Just In Time)?
7
2011
by: carl.manaster | last post by:
Hi, I'd like to take a string containing MSIL code, assemble it, execute it, and receive the result all from my running C# application. So far I've managed to manually create some MSIL code...
4
19115
by: James dean | last post by:
My understanding is the MSIL runs on the CLR and the CLR is basically the JIT compiler plus Garbage collection. This part "MSIL runs on the CLR" is a bit vague to me can anyone give me a clearer...
3
3369
by: NigelW | last post by:
Clarification needed please. If I compile a C++ program with the /clr option inpsection of the resulting assembly with ILDASM shows MSIL even for methods in classes for which I have not...
1
1796
by: John Doe | last post by:
Hi all, I have a lot of confusion about what this runtime environment is. When I write an application with unmanaged code and unmanaged data, can I compile it to the MSIL, or it will compile...
2
1627
by: Stefan Hoffmann | last post by:
hi @all, I have these two getter: public ArrayList I1 { get { if (i1 == null) {
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.