[llvm-dev] Must string literals be declared as a global variable in LLVM IR?
Peng Yu via llvm-dev
llvm-dev at lists.llvm.org
Tue Jan 22 12:48:10 PST 2019
> If you want a pointer to a value, it has to be located somewhere in
> memory. There are basically three places memory can be allocated in a
> program: on the stack (alloca),
Even I can alloca a chuck of memory, there is not a way to put the
string constant to it? Sounds likely there is not way to avoid the
initialization of the global variables. Is it?
> on the heap (malloc), or in program
> memory (a global variable/constant).
More information about the llvm-dev