The MASM Forum

General => The Colosseum => Topic started by: sinsi on September 28, 2018, 03:15:10 PM

Title: optimization gone mad
Post by: sinsi on September 28, 2018, 03:15:10 PM
Align a loop to 16
Code: [Select]
66 66 66 66 66 66 0F 1F 84 00 00 00 00 00       nop     dword ptr [rax+rax+00000000h]For a critical loop, maybe. But this loop runs once for a maximum of 22 times - searches the bitmap from GetLogicalDrives
for the first free drive letter from D to Z.

Madness. No wonder 64-bit code is bloated...
Title: Re: optimization gone mad
Post by: jj2007 on September 28, 2018, 03:34:00 PM
Who wrote that, a compiler? Which one?
Title: Re: optimization gone mad
Post by: sinsi on September 28, 2018, 04:25:39 PM
From the website
Quote
... built with WDK 7.1.0.

This code was from a control panel applet.