Skip to content

Commit 177b80c

Browse files
authored
Merge pull request MicrosoftDocs#4658 from mspll/patch-1
largeaddressaware:no is not recommended for 64-bit apps
2 parents 5b61c30 + a0921a7 commit 177b80c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/build/reference/largeaddressaware-handle-large-addresses.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
description: "Learn more about: /LARGEADDRESSAWARE (Handle Large Addresses)"
33
title: "/LARGEADDRESSAWARE (Handle Large Addresses)"
4-
ms.date: "11/04/2016"
4+
ms.date: "02/12/2024"
55
f1_keywords: ["VC.Project.VCLinkerTool.LargeAddressAware", "/largeaddressaware"]
66
helpviewer_keywords: ["LARGEADDRESSAWARE linker option", "-LARGEADDRESSAWARE linker option", "/LARGEADDRESSAWARE linker option"]
7-
ms.assetid: a29756c8-e893-47a9-9750-1f0d25359385
87
---
98
# /LARGEADDRESSAWARE (Handle Large Addresses)
109

@@ -14,9 +13,11 @@ ms.assetid: a29756c8-e893-47a9-9750-1f0d25359385
1413

1514
## Remarks
1615

17-
The /LARGEADDRESSAWARE option tells the linker that the application can handle addresses larger than 2 gigabytes. In the 64-bit compilers, this option is enabled by default. In the 32-bit compilers, /LARGEADDRESSAWARE:NO is enabled if /LARGEADDRESSAWARE is not otherwise specified on the linker line.
16+
The /LARGEADDRESSAWARE option tells the linker that the application can handle addresses larger than 2 gigabytes. In the 64-bit compilers, this option is enabled by default. In the 32-bit compilers, `/LARGEADDRESSAWARE:NO` is enabled if `/LARGEADDRESSAWARE` is not otherwise specified on the linker line.
1817

19-
If an application was linked with /LARGEADDRESSAWARE, DUMPBIN [/HEADERS](headers.md) will display information to that effect.
18+
If an application was linked with `/LARGEADDRESSAWARE`, `DUMPBIN` [/HEADERS](headers.md) will display information to that effect.
19+
20+
Linking 64-bit applications with **`/LARGEADDRESSAWARE:NO`** is not recommended because it restricts the available address space, which can result in runtime failures if the app exhausts memory. It may also prevent x64 apps from running on ARM64 systems because the emulation runtime will try to reserve 4GB of virtual address space. If the app was linked with `/LARGEADRESSAWARE:NO`, the app won't launch because it can't allocate that much address space.
2021

2122
### To set this linker option in the Visual Studio development environment
2223

0 commit comments

Comments
 (0)