IDE Fix Pack 6.1 released

  • 主题发起人 Andreas Hausladen
  • 开始时间
A

Andreas Hausladen

Unregistered / Unconfirmed
GUEST, unregistred user!
With the release of IDE Fix Pack 6.1, the Compiler Speed Pack not only makes the compiler compile faster but it can now also change the generated code, something that IDE Fix Pack has never done before. For this, new command line compiler options are introduced. They all start with “-x” (eXtension) followed by the Compiler Speed Pack option (-x-ff, -x-fdi, -x-fvs, -x-fpr) and if you want to use them from the command line compiler you need to use fastdcc32/fastdcc64.
You can specify these options in the “Project/Options…” dialog under “Delphi Compiler/Compiling/Additional options to pass to the compiler”. You may need to rebuild the project to see an effect as only then the compiler will generate new code.




Windows 10 Creators Update 1703 caused issues with all Delphi programs, libraries and packages because it changed how Windows loads imported DLLs in such a way that it causes performance issues and can crash the debugger. Delphi 10.2 Tokyo Update 2 fixed this by not producing multiple dll import sections for one DLL anymore. IDE Fix Pack 6.1 implements that “feature” for all previous Delphi versions (2009-10.1 Berlin) and extends it to not only eliminate duplicate dll imports but also duplicate delay dll imports.
This patch changes the generated binary, the Win32 and Win64 compiler outputs, and it can be disabled by using the new “-x-fdi-“ option.

The next patch that changes the Win32 code generator is the “fast floating point” option that C++Builder users may know from the “bcc32.exe -ff” option. It removes all “fwait” instructions that the compiler usually emits after floating point operations. Removing “fwait” may cause FPU exceptions to be thrown at the wrong source code line.
This option is disabled by default and can be enabled by specifying the new option “-x-ff”.

When calling virtual methods through an interface the Win32 Delphi compiler has to route that call through a helper function that translates the interface reference into an object reference and calls the virtual method. For this helper the compiler uses the XCHG instruction that has an implicit CPU LOCK.
The new “-x-fvs” / “-x-fvs=1” option replaces the XCHG instruction with an alternative code and if the called virtual function doesn’t use the ECX register for the 3rd parameter, it generates a direct jump into the virtual method.
The “-x-fvs=2” option replaces the XCHG and uses ECX if available but if ECX is not available it keeps the CPU’s “return stack cache” valid by replacing the RET with a JMP instructions. For this it uses stack memory below ESP.

For some functions that meet special conditions the Win32 compiler emits stack frame code that fills the stack with zeros to clear variables with managed types. If there are too many of those the compiler uses a loop and the XCHG instruction to restore the ECX register that is used as the loop counter.
The option “-x-fpr” replaces the XCHG with an alternative code.



Changelog:

  • Added: Option -x-ff to enable “fast floating point” (like Borland C++’s -ff command line option)
  • Added: Option -x-fvs and -x-fvs=n to enable fast interface virtual stub (n=1: replace XCHG, n=2: keep the CPU’s return stack buffer in order)
  • Added: Option -x-fpr to remove XCHG from the function prolog code.
  • Added: DLL import table section folding and duplicate name/ordinal elimination, also for delay dll imports
  • Changed: Split “Compiler64.X86″ patch into multiple smaller patches and removed the “Compiler64.X86” patch name
  • Changed: EditorFocusFix now skips the SetActiveWindow call if the mainform (undocked) is not the active window

Download:

Name​
IDE Version​
File​
Size​
Downloads​
Added​
IDE Fix Pack 6.1
2009 (UP4)​
IDEFixPack2009Reg61.7z
188.69 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
2010 (UP5)​
IDEFixPack2010Reg61.7z
185.16 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1
XE (UP1)​
IDEFixPackXEReg61.7z
172.38 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE2 (UP4+HF1)​
IDEFixPackXE2Reg61.7z
257.78 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE3 (UP2)​
IDEFixPackXE3Reg61.7z
211.58 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE4 (UP1)​
IDEFixPackXE4Reg61.7z
214.75 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE5 (UP2)​
IDEFixPackXE5Reg61.7z
211.52 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE6 (UP1)​
IDEFixPackXE6Reg61.7z
371.36 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE7 (UP1)​
IDEFixPackXE7Reg61.7z
387.52 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1 (unsupported)
XE8 (UP1)​
IDEFixPackXE8Reg61.7z
384.92 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1
10 Seattle (RTM/UP1)​
IDEFixPackD10Reg61.7z
393.62 KB​
0 times​
2017-10-29​
IDE Fix Pack 6.1
10.1 Berlin​
IDEFixPackD101Reg61.7z
391.51 KB​
1 times​
2017-10-29​
IDE Fix Pack 6.1
10.2 (RTM/UP1)​
IDEFixPackD102Reg61.7z
392.83 KB​
1 times​
2017-10-29​

Download (fastdcc):

Name​
IDE Version​
File​
Size​
Downloads​
Added​
fastdcc 6.1
2009 (UP4)​
fastdcc2009v61.7z
82.7 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
2010 (UP5)​
fastdcc2010v61.7z
90.05 KB​
0 times​
2017-10-29​
fastdcc 6.1
XE (UP1)​
fastdccXEv61.7z
91.83 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE2 (UP4+HF1)​
fastdccXE2v61.7z
129.42 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE3 (UP2)​
fastdccXE3v61.7z
137.11 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE4 (UP1)​
fastdccXE4v61.7z
140.2 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE5 (UP2)​
fastdccXE5v61.7z
139.27 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE6 (UP1)​
fastdccXE6v61.7z
186.06 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE7 (UP1)​
fastdccXE7v61.7z
200 KB​
0 times​
2017-10-29​
fastdcc 6.1 (unsupported)
XE8 (UP1)​
fastdccXE8v61.7z
199.79 KB​
0 times​
2017-10-29​
fastdcc 6.1
10 Seattle (RTM/UP1)​
fastdccD10v61.7z
200.17 KB​
0 times​
2017-10-29​
fastdcc 6.1
10.1 Berlin​
fastdccD101v61.7z
199.9 KB​
0 times​
2017-10-29​
fastdcc 6.1
10.2 (RTM/UP1)​
fastdccD102v61.7z
200.66 KB​
1 times​
2017-10-29​

查看更多...
 

Similar threads

A
回复
0
查看
573
Andreas Hausladen
A
A
回复
0
查看
638
Andreas Hausladen
A
A
回复
0
查看
624
Andreas Hausladen
A
A
回复
0
查看
600
Andreas Hausladen
A
A
回复
0
查看
541
Andreas Hausladen
A
顶部