/LARGEADDRESSAWARE(处理大地址)/LARGEADDRESSAWARE (Handle Large Addresses)

/LARGEADDRESSAWARE[:NO]

备注Remarks

/LARGEADDRESSAWARE 选项通知链接器应用程序可以处理大于 2 千兆字节的地址。The /LARGEADDRESSAWARE option tells the linker that the application can handle addresses larger than 2 gigabytes. 在 64 位编译器中,默认情况下启用此选项。In the 64-bit compilers, this option is enabled by default. 在 32 位编译器中,如果 /LARGEADDRESSAWARE 否则未指定链接器行上启用 /largeaddressaware: no。In the 32-bit compilers, /LARGEADDRESSAWARE:NO is enabled if /LARGEADDRESSAWARE is not otherwise specified on the linker line.

如果应用程序已链接使用 /LARGEADDRESSAWARE,DUMPBIN /HEADERS将显示该结果的信息。If an application was linked with /LARGEADDRESSAWARE, DUMPBIN /HEADERS will display information to that effect.

在 Visual Studio 开发环境中设置此链接器选项To set this linker option in the Visual Studio development environment

  1. 打开项目的“属性页” 对话框。Open the project's Property Pages dialog box. 有关详细信息,请参阅设置 Visual c + + 项目属性For details, see Setting Visual C++ Project Properties.

  2. 单击链接器文件夹。Click the Linker folder.

  3. 单击系统属性页。Click the System property page.

  4. 修改启用大地址属性。Modify the Enable Large Addresses property.

以编程方式设置此链接器选项To set this linker option programmatically

请参阅See Also

设置链接器选项Setting Linker Options
链接器选项Linker Options