[LLVMdev] What's the meaning of [0 x sbyte*]?
夏一民
xia_yimin at 163.com
Mon Aug 16 19:27:50 PDT 2004
Hi
When I compiled sendmail v8.11.6 with LLVM 1.2, I found some variables with
strange type, such as:
%sys_errlist = external constant [0 x sbyte*] ; <[0 x sbyte*]*> [#uses=3]
%tmp.24 = getelementptr [0 x sbyte*]* %sys_errlist, long 0, long %tmp.23 ; <sbyte**> [#uses=1]
The process of getting these is:
1. entry sendmail-8.11.6 directory
2. make CC="/cfrontend/x86/llvm-gcc/bin/gcc"
3. entry obj.Linux.2.4.20-8.i686/sendmail
4. llvm-dis sendmail.bc &> sendmail.ins
5. grep "\[0 x sbyte*\]" sendmail.ins
What is the meaning of [0 x sbyte*]?
A pointer with the type of [0 x sbyte*]* is a void pointer?
Xia
-------------------------------------------------------------------------------------AOC(冠捷)17寸液晶16ms¥2888 http://design.163.com/aocmonitor/index.html
More information about the llvm-dev
mailing list