Displaying 1 result from an estimated 1 matches for "1001951".
Did you mean:
1000951
2009 Jan 10
2
[LLVMdev] How to represent zero-sized string?
Hi all,
int main() {
t("");
return 0;
}
On Mac OS X, llvm-gcc compiles the zero-sized string to:
.lcomm LC,1,0
gcc:
.cstring
LC0:
.ascii "\0"
The difference seems innocent enough. However, in objc if the zero-
sized string is part of a cfstring, it causes a problem. The linker
expects it in the readonly __cstring section, but llvm puts it in the