The MASM Forum Archive 2004 to 2012

Project Support Forums => HLA Forum => Topic started by: juliomacedo on January 17, 2006, 04:09:46 PM

Title: optimizing assembly code
Post by: juliomacedo on January 17, 2006, 04:09:46 PM
Where can I find about optimization of assembly code?

I want to find a source of tips as:

Using DEC and JZ is faster than using LOOP...

Using SHL when multiplying for a power of two is a faster way of doing that...

Thanks

Julio

Title: Re: optimizing assembly code
Post by: Sevag.K on January 17, 2006, 05:22:29 PM

http://www.agner.org/

Title: Re: optimizing assembly code
Post by: elcricri on January 22, 2006, 12:44:14 AM
for amd
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25112.PDF
you can see a loop take 8 cycle a dec 1 a jnz 1 and i think dec +jnz only 1