Author Topic: optimization gone mad  (Read 800 times)

sinsi

  • Member
  • *****
  • Posts: 1187
optimization gone mad
« 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...
I can walk on water but stagger on beer bourbon.

jj2007

  • Member
  • *****
  • Posts: 9792
  • Assembler is fun ;-)
    • MasmBasic
Re: optimization gone mad
« Reply #1 on: September 28, 2018, 03:34:00 PM »
Who wrote that, a compiler? Which one?

sinsi

  • Member
  • *****
  • Posts: 1187
Re: optimization gone mad
« Reply #2 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.
I can walk on water but stagger on beer bourbon.