-
Notifications
You must be signed in to change notification settings - Fork 77
Large binaries #654
Copy link
Copy link
Open
Labels
bugSome API breaks the contract it establishesSome API breaks the contract it establisheshelp wantedPR's would be appreciatedPR's would be appreciatedsubsystem-graphics
Metadata
Metadata
Assignees
Labels
bugSome API breaks the contract it establishesSome API breaks the contract it establisheshelp wantedPR's would be appreciatedPR's would be appreciatedsubsystem-graphics
Describe the bug
A simple program using quicksilver generates a 23MB binary whose rodata consists mostly of null bytes.
To Reproduce
Compile the following on
--release:If I take out the
to_renderercall, the size drops to a more reasonable 6 MB. I think this is happening because theCACHE_DATAstatic is getting shoved inside the file's.rodata, since if I put my own 4M-entry static array in the binary (and then read from it to prevent it from getting optimized out) the binary grows by another 16 MB.Environment and versions (please complete the following information):