The MASM Forum

General => Reference => Topic started by: Vortex on May 26, 2012, 04:15:11 AM

Title: x86 Machine Code Statistics
Post by: Vortex on May 26, 2012, 04:15:11 AM
An interesting article by Peter Kankowski :

x86 Machine Code Statistics (http://www.strchr.com/x86_machine_code_statistics)
Title: Re: x86 Machine Code Statistics
Post by: jj2007 on May 26, 2012, 07:07:41 AM
6% call, 1% ret??  ::)
Title: Re: x86 Machine Code Statistics
Post by: KeepingRealBusy on May 26, 2012, 08:21:57 AM
JJ,

Yes, I believe that. You have many calls to a procedure, but that procedure only has 1 ret (maybe more than 1 with conditional early exits). Note the stats are for the code itself, not a profile of the execution of the code.

Dave.
Title: Re: x86 Machine Code Statistics
Post by: jj2007 on May 26, 2012, 04:23:17 PM
Dave,
I overlooked the obvious. Thanks for putting me back on track :biggrin:
Title: Re: x86 Machine Code Statistics
Post by: dedndave on May 26, 2012, 10:39:20 PM
API functions are probably used ~5:1 over local PROC's
Title: Re: x86 Machine Code Statistics
Post by: K_F on May 27, 2012, 06:29:15 AM
The way software is done now days.. there are many proc calls with just as many crashes, without rets...
Not surprising  :P