[Issue 21136] New: N sized array takes kN bytes in executable file
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 8 07:43:23 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21136
Issue ID: 21136
Summary: N sized array takes kN bytes in executable file
Product: D
Version: D2
Hardware: x86_64
URL: http://dlang.org/
OS: Linux
Status: NEW
Severity: blocker
Priority: P3
Component: dmd
Assignee: nobody at puremagic.com
Reporter: raoofha at yahoo.com
hi
```
/*
dmd -betterC $0
exit 1
*/
//byte[1000000] arr; // output size: 16664
//bool[1000000] arr; // output size: 16664
//int[1000000] arr; // output size: 16664
//char[1000000] arr; // output size: 1016096
//float[1000000] arr; // output size: 4014368
//double[1000000] arr;// output size: 8016160
struct S {
double[1000000] arr;// output size: 8016056
}
extern (C) int main() {
return 42;
}
```
--
More information about the Digitalmars-d-bugs
mailing list