FastMMǷǳڴǴFastMM4Options.incҵѳѡⲻһӢĵľҰļӢעͶġ㷢κη벻ǡĵطֱӽ޸ľͿˡǺǣFastMMд˷ʼļҲᱻһFastMM汾С
㲻ԸأֱӰݸƵFastMM4Options.incļﲢԭļݼɡǶµFastMM4.84汾ķ룬֮ǰİ汾Բοա

{

Fast Memory Manager: ѡļ

ΪFastMMĬѡ

FastMM 4.84

}

{
   Simplified Chinese translation by QianYuan Wang

   Contact me if you find any improper translation.
   κβǡĵطϵ

   E-Mail: wqyfavor@163.com
}

{
 Ըѡķ루
 
 Align16Bytes      16ֽڶ
 UseCustomFixedSizeMoveRoutines   ʹù̶ߴڴƶ
 UseCustomVariableSizeMoveRoutines   ʹÿɱߴڴƶ
 AssumeMultiThreaded     ̴߳
 NeverSleepOnThreadContention    ̳߳ͻʱͣ
 InstallOnlyIfRunningInIDE    Delphiмڴ
 NeverUninstall     жFastMM
 UseRuntimePackages     ʹڰ
 
 NoDebugInfo      ޵Ϣ
 NoMessageBoxes     ʾϢ
 UseOutputDebugString     ʹWindows API OutputDebugString
 ASMVersion      汾
 CheckHeapForCorruption    Ѵ
 DetectMMOperationsAfterUninstall   ڹжغò
 FullDebugMode      ȫģʽ
   RawStackTraces     ׵ջ׷
   CatchUseOfFreedInterfaces    ׽ٶ
   LogErrorsToFile     ¼ļ
   LogMemoryLeakDetailToFile    ¼ڴй¶ϸڵļ
   ClearLogFileOnStartup    ʱ־ļ
   LoadDebugDLLDynamically    ̬صDll
   AlwaysAllocateTopDown    ܴ˷ڴ

 EnableMemoryLeakReporting    ڴй¶
   HideExpectedLeaksRegisteredByPointer  ָ¼Ŀܵڴй¶
   RequireIDEPresenceForLeakReporting   IDEʱй¶
   RequireDebuggerPresenceForLeakReporting  ڵʱй¶
   RequireDebugInfoForLeakReporting   й¶ҪϢ
   ManualLeakReportingControl    ֹй¶
   HideMemoryLeakHintMessage    ڴй¶ʾϢ

 EnableMMX      ʹMMX
   ForceMMX      ǿʹMMX

 ShareMM      ڴ
   ShareMMIfLibrary     Dllйڴ
 AttemptToUseSharedMM     Թڴ
 EnableBackwardCompatibleMMSharing   ݵڴ

 FullDebugModeInIDE     Delphiнȫ
}

{---------- ۺѡ ----------}

{ѡὫڴ鰴16ֽڶԱSSEָ԰ȫʹáѡرգһЩ
 Сڴᰴ8ֽڷʽ룬⽫ڴʹáǷѡеȺʹ
 鶼16ֽڷʽ롣}
{.$define Align16Bytes}

{СڴʱʹøĶߴڴƶΪЩΪƶ̶ߴ
 ڴ棬ЧʴBorlandRTLеڴƶһѡFastMoveʹ
 ﵽߵЧʡ}
{$define UseCustomFixedSizeMoveRoutines}

{ѡʹŻĺƶСڴ顣ʹFastcodeFastMoveʱ
 ѡʹFastMoveʹʹõڴƶڴ
 ˽齫FastMMFastMoveϣرմѡ}
{$define UseCustomVariableSizeMoveRoutines}

{ĬϳǶ̵߳ģᵼµ̳߳ٶ½ʹÿδȷ
 IsMultiThreadĶ̵߳ĵʱ뿪ѡڵ߳Ͷ߳Dll
 乲ڴʱҲ迪}
{.$define AssumeMultiThreaded}

{ѡ̳߳ͻʱһ߳ͣڻCPUĿȵͣС2ʱ
 ٶȡ󣬳ͻʱһ߳̽롰ȴѭǽʱƬ}
{.$define NeverSleepOnThreadContention}

{ѡʹDelphi IDEʱżӲFastMMΪڴϣ
 ExeԵExeֻϣڿʹõʱ뿪ѡֲ
 ڿУʹĬϵDelphiڴDelphi2006ԺǲFullDebugMode
 FastMM}
{.$InstallOnlyIfRunningInIDE}

{QC#14070Delphiborlandmm.dllĹرִָкͷڴ棩ʹFastMM
 Ϊĵborlandmm.dllƷFastMMܱжءѡ᲻жڴ
 ܿ}
{.$define NeverUninstall}

{ڵǰʹڵİҪѡԶAssumeMultiThreaded
 עȷָ붼ͷźFastMMжءôһкܶA/Vľ
 ڴй¶档ο⣩ͬʱѡNeverUninstallѡ}
{.$define UseRuntimePackages}

{---------- ѡ ----------}

{ѡΪFastMM4.pasԪԴ룬ҲͬʱֹFastMM4.pasԪ}
{.$define NoDebugInfo}

{ѡʾκϢڲֹķбȽ}
{.$define NoMessageBoxes}

{ҪʹWindows API OutputDebugStringʾϢ뿪ѡ}
{.$define UseOutputDebugString}

{ѡʹû԰汾FastMMPascal汾Ҫ졣ڵʱرմѡ
 CheckHeapForCorruptionԶرմ}
{$define ASMVersion}

{FastMMܻᲶ׽ͷŵͬһڴҲԼѵĴͨ
ڳԽдڴ棩Щܺķʱ䣬ѡӦʱʹáѡ
ASMVersionԶر}
{.$define CheckHeapForCorruption}

{ѡFastMMжغûFastMMò󣬵FastMMжأ
 ǰڴǼһڴһڴ
 ׳Ჶ׽FastMMѱжضԽڴĴ}
{$define DetectMMOperationsAfterUninstall}

{ѡڴй¶й㷺⡣ڴ鶼ÿ׺͸Уѵ
 ԡͷŵڴ飨ָ룩ҲᱻԱ֤ǲᱻٴʹáһѡȽ
 ڴٶȣһԽдڴظʹѱͷŵָĳʱʹá
 ѡԶCheckHeapForCorruptionԶرASMVersionʾ
 ѡʱҪʹFastMM_FullDebugMode.dllļļʧ޷}
{.$define FullDebugMode}

  {ѡԽг׵ջ׷٣ջĿѰҺϷķصַעʹ
   ջ֡ķҪܶ࣬סFullDebugModeʱѡЧ}
  {$define RawStackTraces}

  {ѡжٶáעʹͷŶ޸Ĺݱ
   ǣڴļ޷У޷棩FullDebugModeʱѡЧ}
  {.$define CatchUseOfFreedInterfaces}

  {ѡԼ¼еĴһͬĿ¼ıļСڴ󣨵
   FullDebugModeӵ־FullDebugModeرգѡЧ}
  {$define LogErrorsToFile}

  {ѡ¼й¶һͬĿ¼ıļСڴй¶棨
   FullDebugModeӵ־"LogErrorsToFile""FullDebugMode"δ
   ѡЧעͨй¶ᱻ¼ЩAddExpectedMemoryLeaksʶ
   ܵڴй¶ЩָĿܵй¶ܻڿHideExpectedLeaks-
   RegisteredByPointerʾ}
  {$define LogMemoryLeakDetailToFile}

  {ʱɾ־ļLogErrorsToFileʱЧ}
  {.$define ClearLogFileOnStartup}

  {Ƿ̬FASTMM_FullDebugMode.dllҲDllջ׷ٽ޷Сע
   ڴʱDllж˳ı䣬ܻᷢ}
  {.$define LoadDebugDLLDynamically}

  {FastMMͨʹ˵Ŀõַڴ飬Ͷ˵ĿõַϷ
   ССڴ飨һ̶ϼƬѡʹڴʹ
   ˵Ŀõַʹ˴2GBڴ沢㷨ָ ѡ
   緢ִ}
  {$define AlwaysAllocateTopDown}

{---------- ڴй¶ ----------}

{ѡڴй¶棬ѡʹá}
{$define EnableMemoryLeakReporting}

  {ѡʾͼ¼ָ͵µĿܵڴй¶ָࣨ룩
   Ŀܵڴй¶ȷЩܵй¶ǻ¼־FullDebugMode
   LogMemoryLeakDetailToFileʱҵʵй¶ڴĶʱһʾ}
  {$define HideExpectedLeaksRegisteredByPointer}

  {ѡʵֽDelphiϴʱűڴй¶"EnableMemoryLeakReporting"
   رʱѡЧ}
  {.$define RequireIDEPresenceForLeakReporting}

  {ѡʵֽDelphiеԳʱűڴй¶"EnableMemoryLeakReporting"
   رʱѡЧѡڵEXEʱЧ֧Dll}
  {$define RequireDebuggerPresenceForLeakReporting}

  {ѡʵֽڱ뵥Ԫдڵָʾ$DʱŽй¶⡣
   "EnableMemoryLeakReporting"رʱѡЧ}
  {.$define RequireDebugInfoForLeakReporting}

  {ѡֹڴй¶档ʱReportMemoryLeaksOnShutdown
   رʱڴй¶ĬϹرգΪѡǷɱ档ʱй¶ѡ
   Ҳȷòܽм}
  {.$define ManualLeakReportingControl}

  {ѡʾڴй¶Ϣʾ}
  {.$define HideMemoryLeakHintMessage}

{---------- ָ ----------}

{ѡʹMMXָرմѡᵼ΢½AMD K5
 Pentium IڴּݡĿǰMMXָֻڿɱߴڴƶʹã
 UseCustomVariableSizeMoveRoutinesرգѡЧ}
{.$define EnableMMX}

  {ѡǿʹMMXָCPUǷ֧֡һѡرգ
   ȼCPUǷ֧MMXָEnabledMMXرʱЧ}
  {$define ForceMMX}

{---------- ڴ ----------}

{ͬʹFastMMDll֮乲ڴDllеĺ
 ̬ͳַҪDllʱAttemptToUseSharedMMſʵڴ湲
 עǵ̶߳DllǶ̵߳ģ￪IsMultiThread,
 ̳߳ͻʱע⾲̬ӵDll֮ǰʼʵʻ
 Dllڴ
}
{.$define ShareMM}

  {Dll֮䣨̬Dllʱ֮䣩ڴ,ҪͬʹFastMM롣
   ʹö̬ӵDllʱҪע⣬ΪDllжضDllڹڴ
   򽫻ѡֻDllضҪShareMMAttemptToUseSharedMMע
   DllǾ̬ӵģǻ֮ǰʼʵǹ
   ShareMMرʱѡЧ} 
  {.$define ShareMMIfLibrary}

{ѡ᳢֮ͬDllҲѡ֮乲ڴ
 ʱʹù߲й¶Զھ̬ӵDll
 ֮ǰʼģԸùѡ}
{.$define AttemptToUseSharedMM}

{ѡԱ֤ڴԡDelphi2006Delphi2007ϰ汾
FastMMЧ}
{$define EnableBackwardCompatibleMMSharing}

{----------  ----------}

{ѡFullDebugModeInstallOnlyIfRunningInIDELoadDebugDLLDynamically
 DelphiнеУFastMMȫԣFullDebugMode
 ʹĬڴDelphi2006汾ԺδFullDebugModeFastMM}
{.$define FullDebugModeInIDE}

{÷汾͵԰汾}
{$ifdef Release}
  {汾}
  {.$undef FullDebugMode}
  {.$undef CheckHeapForCorruption}
  {.$define ASMVersion}
  {.$undef EnableMemoryLeakReporting}
  {.$undef UseOutputDebugString}
{$else}
  {԰汾}
  {.$define FullDebugMode}
  {.$define EnableMemoryLeakReporting}
  {.$define UseOutputDebugString}
{$endif}

{---------- borlndmm.dll ѡ ----------}
{رborlandmm.dllļҪѡ}

{borlandmm.dllʱ뿪ѡ}
{.$define borlndmmdll}

{dllDelphiʹ뿪ѡ}
{.$define dllforide}

{dllļʱ뿪ѡ}
{.$define debugdll}

{벻ҪĶ}
{$ifdef borlndmmdll}
  {$define AssumeMultiThreaded}
  {$undef HideExpectedLeaksRegisteredByPointer}
  {$undef RequireDebuggerPresenceForLeakReporting}
  {$undef RequireDebugInfoForLeakReporting}
  {$define DetectMMOperationsAfterUninstall}
  {$undef ManualLeakReportingControl}
  {$undef ShareMM}
  {$undef AttemptToUseSharedMM}
  {$ifdef dllforide}
    {$define NeverUninstall}
    {$define HideMemoryLeakHintMessage}
    {$undef RequireIDEPresenceForLeakReporting}
    {$ifndef debugdll}
      {$undef EnableMemoryLeakReporting}
    {$endif}
  {$else}
    {$define EnableMemoryLeakReporting}
    {$undef NeverUninstall}
    {$undef HideMemoryLeakHintMessage}
    {$define RequireIDEPresenceForLeakReporting}
  {$endif}
  {$ifdef debugdll}
    {$define FullDebugMode}
    {$define RawStackTraces}
    {$undef CatchUseOfFreedInterfaces}
    {$define LogErrorsToFile}
    {$define LogMemoryLeakDetailToFile}
    {$undef ClearLogFileOnStartup}
  {$else}
    {$undef FullDebugMode}
  {$endif}
{$endif}

{BCBöڡBuild with Dynamic RTLѡ£
CB2006/CB2007Աborlandmm.dllļ׷ڴй¶}
{---------- רΪBCB ----------}

{ҪΪBCB׼ĲҪ"Project Options->Pascal/Delphi Compiler->Defines"
 BCBĶ塣лJiYuan Xieʵһ֣}

{$ifdef BCB}
  {$ifdef CheckHeapForCorruption}
    {$define PatchBCBTerminate}
  {$else}
    {$ifdef DetectMMOperationsAfterUninstall}
      {$define PatchBCBTerminate}
    {$else}
       {$ifdef EnableMemoryLeakReporting}
         {$define PatchBCBTerminate}
       {$endif}
    {$endif}
  {$endif}

  {$ifdef PatchBCBTerminate}
    {$define CheckCppObjectType}
    {$undef CheckCppObjectTypeEnabled}

    {$ifdef CheckCppObjectType}
      {$define CheckCppObjectTypeEnabled}
    {$endif}

    {"CheckHeapForCorruption""EnableMemoryLeakReporting"δر
     "CheckCppObjectTypeEnabled"}
    {$ifdef CheckHeapForCorruption}
    {$else}
      {$ifdef EnableMemoryLeakReporting}
      {$else}
        {$undef CheckCppObjectTypeEnabled}
      {$endif}
    {$endif}
  {$endif}
{$endif}