-
Counting machine code?
Is there a way or a way to find out how many machine code instructions are being executed when you run your program? I've tried stepping through the assembly code but there are too many to count by hand. I'm using Visual C++ 6.0.
Thanks for your help.
-
I don't know, but why would you want to do that?
-
try disassembling it. lots of asm code there
-
I tried to disassemble but there are too many calls to other subroutines to count all the asm code. I was looking for an easier way to do that.
-
you can get some idea from the size of the finished executable.
Some profilers may offer an option to count instructions. All will give you some idea of the time spent in each function.
-
I'm having trouble using Visual C++ 6.0 enterprise edition's profiler. I enabled profiling under the project settings and I built my project. But when I try to choose profile under the build menu it's dimmed out. Any ideas what I'm doing wrong?
Thanks
-
go into the command prompt:
type
>debug
then type
>U
and then press R to view the first instruction and keep pressing T to see the next until you reach the end.
I think so anyway...
-
>But when I try to choose profile under the build menu it's dimmed out. Any ideas what I'm doing wrong?
Have you tried here.
-