The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: gabor on January 05, 2007, 05:12:14 PM

Title: ASM optimizer
Post by: gabor on January 05, 2007, 05:12:14 PM
Hello!

I've read several architectural and optimization documentation and come quite straightforwardedly to the question:
Is there any tool with features
- profiling a binary with some interface to set up monitor points
- calculating cycles of a piece of code for a specified CPU (the best would be to be able to select this piece of code given by its source)
- recommends code modification (instruction substitutes, swaps, etc.) to improve performance
- tracks registers to eliminate unnecessary value assignments

I cannot think of anything else, but there is much more for sure.

I believe there is a commercial tool from Intel with similar functionality...

I know it would be a really big project to create such a powerfull tool (something close to compilers and optimizers), so I am asking whether anybody have heard of something like this. No commercial products if possible.

Greets, Gábor
Title: Re: ASM optimizer
Post by: stanhebben on January 05, 2007, 05:19:54 PM
The Amd profiler is free, can be downloaded from their developer site. However, it only profiles for amd processors.

CodeAnalyst: http://developer.amd.com/downloads.jsp

You only need an account.
Title: Re: ASM optimizer
Post by: TNick on January 05, 2007, 05:22:42 PM
Both Intel and AMD have some free profilers. On Agner's site you'll find some usefull pieces of code and test tools in adition to his manuals. I'll search the link in a moment.

http://www.agner.org/optimize/
Nick

Title: Re: ASM optimizer
Post by: u on January 05, 2007, 09:50:13 PM
Could anyone share a stable CodeAnalyst version, older than the current 2.69.248.0115, for 32-bit windows? This version only crashes on my Sempron, even with the simple test-app "example1" that AMD have included. (crashes on an instruction "mov bl,[esi]" , not for compatibility issues ) .
Title: Re: ASM optimizer
Post by: u on January 06, 2007, 05:04:43 PM
P.S. I'll try making a simple pipeline-profiler, basing it on data from Agner's site. I won't be needing CodeAnalyst now... so I could wait for the final-release, to cross-check results.
Title: Re: ASM optimizer
Post by: stanhebben on January 09, 2007, 04:22:30 PM
CodeAnalyst comes with it's own bugs. PM me if you want to know workarounds for certain common bugs.