News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ASM optimizer

Started by gabor, January 05, 2007, 05:12:14 PM

Previous topic - Next topic

gabor

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

stanhebben

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.

TNick

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


u

#3
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 ) .
Please use a smaller graphic in your signature.

u

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.
Please use a smaller graphic in your signature.

stanhebben

CodeAnalyst comes with it's own bugs. PM me if you want to know workarounds for certain common bugs.