- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have used the Parallel Inspector with an executable (.EXE) and the Inpsector works quite well. How do I use it with a DLL? Typically when I debug a DLL, I attach to a running explorer.exe process through VS 2010 which in turn invokes my DLL. Do I need to create ashell executable that loads my DLL and then call the various methods of the DLL or, is there a more direct way to use the Inspector?
Thank you,
scotta555
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Since Inspector performs dynamic analysis, you need to run your binary. With a DLL you just create a main executable and call the functions of the DLL. Inspector will analyze both binaries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vladimir,
Ah, as I thought. One needs to use indirection meaning writing a shell (mian) executable, loading the DLL and calling the various functions of the DLL. I wanted to see if there was a betterway of going about this. Thank you for your rapid response.
Scott
Ah, as I thought. One needs to use indirection meaning writing a shell (mian) executable, loading the DLL and calling the various functions of the DLL. I wanted to see if there was a betterway of going about this. Thank you for your rapid response.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Scott,
You may want to use the Static Security Alalizer available in conjunction with the Intel Composer:http://software.intel.com/sites/products/documentation/hpc/inspectorxe/en-us/lin/ug_docs/olh/common/typical_usage_flow_static.htm
(it will require Inspector XE, however)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Scott-
You might also consider just using explorer.exe as your shell as you do with the debugger. Inspector's dynamic annotation won't be able to tell the difference between an .exe that you wrote and a 3rd part .exe. One problem with this approach might be that Inspector will try to analyze explorer.exe, and so it might take quite a while (and memory) to get to the point where explorer.exe loads your dll and starts exercising your code.
-Matt
You might also consider just using explorer.exe as your shell as you do with the debugger. Inspector's dynamic annotation won't be able to tell the difference between an .exe that you wrote and a 3rd part .exe. One problem with this approach might be that Inspector will try to analyze explorer.exe, and so it might take quite a while (and memory) to get to the point where explorer.exe loads your dll and starts exercising your code.
-Matt
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page