Displaying 1 result from an estimated 1 matches for "280b7745".
2017 Nov 27
2
llvm compile too much memory when i userd global array
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
--------------