Changeset 64 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 4, 2014, 2:59:28 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Now commands cmInc, cmDec, cmPointerInc, cmPointerDec and cmSet use numeric parameter to merge multiple small steps to one unary operation with numeric parameter. Optimization is done on TTarget side and not on each specific targets.
  • Added: Optimization to eliminate redundant source code.
  • Added: Optimization level option in Options dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r61 r64  
    2525    Targets: TTargetList;
    2626    OpenProjectOnStart: Boolean;
     27    OptimizationLevel: TCompilerOptimization;
    2728    procedure LoadFromRegistry(Root: HKEY; Key: string);
    2829    procedure SaveToRegistry(Root: HKEY; Key: string);
     
    8081      ReadIntegerWithDefault('DPIY', 96));
    8182    ScaleDPI.AutoDetect := ReadBoolWithDefault('DPIAuto', True);
     83    OptimizationLevel := TCompilerOptimization(ReadIntegerWithDefault('OptimizationLevel', Integer(coNormal)));
    8284  finally
    8385    Free;
     
    99101    WriteInteger('DPIX', ScaleDPI.DPI.X);
    100102    WriteInteger('DPIY', ScaleDPI.DPI.Y);
     103    WriteInteger('OptimizationLevel', Integer(OptimizationLevel));
    101104    if Assigned(CoolTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then
    102105      WriteString('LanguageCode', CoolTranslator1.Language.Code)
Note: See TracChangeset for help on using the changeset viewer.