[llvm-dev] llvm compile too much memory when i userd global array

王小小 via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 27 00:54:32 PST 2017


hi,all
when my code like
------------------------------------
 #include<iostream>
 #include<string>
 using namespace std;
 static string s[1000010];
 int main()
 {
 return 0;
 }


------------------------------------
And I used clang-5 to compile it, it almost cost 1g memory to compile it.  how can i reduce the memory , if i don't want change the code? 
thank you 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171127/43f61cda/attachment.html>


More information about the llvm-dev mailing list