Can someone with cygwin/mingw access tell me what .s file gcc compiles this .c file to: static int test[100]; void *x = &test; Thanks! -Chris
This is what I got from gcc -S t.c .file "t.c" .globl _x .data .align 4 _x: .long _test .lcomm _test,400 On Thu, Jan 21, 2010 at 4:07 PM, Chris Lattner <clattner at apple.com> wrote:> Can someone with cygwin/mingw access tell me what .s file gcc compiles > this .c file to: > > static int test[100]; > void *x = &test; > > Thanks! > > -Chris > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
.file "test0.c" .globl _x .data .align 4 _x: .long _test .lcomm _test,400 Using gcc-4.2.4 on Cygwin/WinXP, with -c -O0 -S flags. Chuck On 1/21/2010 4:07 PM, Chris Lattner wrote:> Can someone with cygwin/mingw access tell me what .s file gcc compiles > this .c file to: > > > static int test[100]; > void *x =&test; > > Thanks! > > -Chris > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
thanks! On Jan 21, 2010, at 1:14 PM, Jim Crafton wrote:> This is what I got from > > gcc -S t.c > > > .file "t.c" > .globl _x > .data > .align 4 > _x: > .long _test > .lcomm _test,400 > > > > On Thu, Jan 21, 2010 at 4:07 PM, Chris Lattner <clattner at apple.com> > wrote: >> Can someone with cygwin/mingw access tell me what .s file gcc >> compiles >> this .c file to: >> >> static int test[100]; >> void *x = &test; >> >> Thanks! >> >> -Chris >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>
Seemingly Similar Threads
- [LLVMdev] cygwin/mingw help
- [LLVMdev] can't build LLVM under Cygwin | released MinGW llvm-2.3 image
- [LLVMdev] can't build LLVM under Cygwin | released MinGW llvm-2.3 image
- [LLVMdev] clang build (Debug+Asserts) fails with Cygwin and Mingw (ASTContext.o: File too big)
- [LLVMdev] runtest on cygwin for a gdb built on mingw failed