The feature I'd most like to see in Delphi is....

Improve optimization of generated code

The Delphi compiler could generate more efficient assembly code if it would do some simple optimizations. Thing to look for : Make better use of the fact that lots of operations already set flags (so a comparison can be avoided). Improve in the register-allocation (don't do "MOV eax, ebx; SHL eax, cx" when eax will be re-used anyway - SHL ebx itself then). Don't emit opcodes that have already been emitted and will give the same result - try to re-use the previous result instead. Etc, etc.

533 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    anonymousanonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • BudBud commented  ·   ·  Flag as inappropriate

        Support for old processors is what left the Delphi compiler very badly optimized for todays computers, you should focus on new processors not some old Pentium processor or so that nobody uses anymore.

      • StebiStebi commented  ·   ·  Flag as inappropriate

        And use MMX and SSE code (but provide fallbacks for older processors).

      Feedback and Knowledge Base