[cfe-dev] cling

Vassil Vassilev vasil.georgiev.vasilev at cern.ch
Fri Jul 29 05:15:37 PDT 2011


Hi David,
   Thanks for reporting!
   I believe that is fixed now.

cat /tmp/trivial.c
double zero = 0.000000e+00;
cling -x c

**** Welcome to the cling prototype! ****
* Type C code and press enter to run it *
* Type .q, exit or ctrl+D to quit       *
*****************************************
[cling]$ .L /tmp/trivial.c
[cling]$ #include <stdio.h>
[cling]$ printf("zero=%f\n", zero);
zero=0.000000
[cling]$

Vassil
On 07/28/2011 06:57 PM, David Chisnall wrote:
> On 28 Jul 2011, at 10:14, David Chisnall wrote:
>
>>> If we have usecase for people using it with C and Objective-{C|C++} I am willing to work on that
>> I'd be very interested in Objective-C support (with the GNU runtimes):
> Well, I started looking at what it would take to get Objective-C working, but unfortunately cling seems to fail with pretty trivial C code:
>
> $ cling
> .
> **** Welcome to the cling prototype! ****
> * Type C code and press enter to run it *
> * Type .q, exit or ctrl+D to quit       *
> *****************************************
> [cling]$ .L trivial.c
> cling: Constants.cpp:546: static llvm::ConstantFP* llvm::ConstantFP::get(llvm::LLVMContext&, const llvm::APFloat&): Assertion `&V.getSemantics() ==&APFloat::PPCDoubleDouble&&  "Unknown FP format"' failed.
> Aborted
> $ cat trivial.c
> double zero = 0.000000e+00;
>
> David




More information about the cfe-dev mailing list