Usage of llvmc

Thank you so much for your reply, Chris.
If so, can I ask you two things more?

First, is there any way to have various optimizations on LLVM assembly such as -O options in llvmc?
llvm-gcc doesn't seem to be working for these -O options...

Second, I'm still not sure about difference between *.s and *.ll.
LLVM assembly *.s file can be made from llvm-gcc -S.
Another assembly *.ll file comes from just llvm-gcc.
Is the difference between these two extensions on the optimized state?

Thanks,
Seung J. Lee

Thank you so much for your reply, Chris.
If so, can I ask you two things more?

First, is there any way to have various optimizations on LLVM assembly such as -O options in llvmc?
llvm-gcc doesn't seem to be working for these -O options...

llvm-gcc accepts and responds to -O[01234s].

Second, I'm still not sure about difference between *.s and *.ll.
LLVM assembly *.s file can be made from llvm-gcc -S.
Another assembly *.ll file comes from just llvm-gcc.
Is the difference between these two extensions on the optimized state?

It sounds to me like you're using llvm-gcc3. Please upgrade to llvm 2.0 and llvm-gcc4.

-Chris

Thanks,
Seung J. Lee

Date: Mon, 28 May 2007 00:08:47 -0700 (PDT)
From: Chris Lattner <sabre@nondot.org>
Subject: Re: [LLVMdev] Usage of llvmc
To: LLVM Developers Mailing List <llvmdev@cs.uiuc.edu>

Hello, guys.
I've tried to use llvmc to test optimization options but wasn't successful.
Would you mind telling me what's wrong with this?

Hi, llvmc is experimental and isn't really supported. I'd suggest using
llvm-gcc instead.

-Chris

-------------------------------------------------------------
$ llvmc chc_03.c -O3 -o chc_03
terminate called after throwing an instance of 'std::string'
llvmc((anonymous namespace)::PrintStackTrace()+0x15)[0x8086091]
/lib/tls/libc.so.6(abort+0xe9)[0x367199]
/usr/lib/libstdc++.so.6(__gnu_cxx::__verbose_terminate_handler()+0xeb)[0x74e25b]
/usr/lib/libstdc++.so.6[0x74bf71]
/usr/lib/libstdc++.so.6[0x74bfa6]
/usr/lib/libstdc++.so.6[0x74c0ef]
llvmc(llvm::LLVMC_ConfigDataProvider::ReadConfigData(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x849)[0x8066f65]
[0x0]
Aborted
$
-------------------------------------------------------------
Forgive my ignorance.
Thank you.

Seung Jae Lee
_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-Chris

--
Chris Lattner's Homepage
http://llvm.org/
_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-Chris