Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / September 2006

Tip: Looking for answers? Try searching our database.

Is there a tool to view JIT output?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 20 Sep 2006 20:34 GMT
I really want to see what machine code the JITter is producing for an
undebugged release build.  I've discovered that I can call a breakpoint
opcode (INT3) which will allow me to attach a debugger and see a little
bit of what I want but its difficult to navigate.

There's the ngen /debug option, but I can't seem to figure out how to
get ngen to generate the native assembly so that I can attach to it and
see whats going on.

Any thoughts?
Willy Denoyette [MVP] - 20 Sep 2006 22:20 GMT
|I really want to see what machine code the JITter is producing for an
| undebugged release build.  I've discovered that I can call a breakpoint
[quoted text clipped - 6 lines]
|
| Any thoughts?

The only possibility is through the native debugger.

Willy.
Barry Kelly - 21 Sep 2006 10:53 GMT
> I really want to see what machine code the JITter is producing for an
> undebugged release build.  I've discovered that I can call a breakpoint
[quoted text clipped - 4 lines]
> get ngen to generate the native assembly so that I can attach to it and
> see whats going on.

You don't need to compile in debug mode or start under the debugger to
debug the application and view the JITted code. You can attach with
WinDbg and load up SOS (".load sos"), and then use commands like
"!name2ee YourModule.exe YourNamespace.YourClass.YourMethod" to get the
jitted address (once they've been run once), and then
"!u <addressOfJITted-method>" to disassemble the body of the managed
method.

-- Barry

Signature

http://barrkel.blogspot.com/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.