You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://dlang.org/spec/arrays.html
"2. The total size of a static array cannot exceed 16Mb"
Radio Yerevan was asked: "Is it true that in D static arrays cannot exceed 16Mb?"
Radio Yerevan answered: "In principle, yes. But it is not megabits (Mb) but mebibytes (MiB). Furthermore the maximum size of static arrays is int.max bytes (2,147,483,647 B = 2 GiB - 1 B) except for Windows where it is 16 MiB."
diff --git a/compiler/src/dmd/target.d b/compiler/src/dmd/target.d
index 461e1e9..a3ab681 100644
--- a/compiler/src/dmd/target.d
+++ b/compiler/src/dmd/target.d
@@ -262,9 +262,9 @@ extern (C++) struct Target
if (ptrsize == 4)
{
/* Optlink cannot deal with individual data chunks
- * larger than 16Mb+ * larger than 16 MiB */- maxStaticDataSize = 0x100_0000; // 16Mb+ maxStaticDataSize = 0x100_0000; // 16 MiB } } else
The text was updated successfully, but these errors were encountered:
kdevel reported this on 2023-03-23T13:26:58Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=23804
Description
The text was updated successfully, but these errors were encountered: