Re: [C--] Segmentation fault

Ning Wang <[email protected]> Tue, 24 Mar 2009 22:43:40 -0700
Newsgroups gmane.comp.lang.c--
Message-ID <[email protected]>
Ning Wang wrote:
> John Dias wrote:
>   
>>> This is bad. Anyway, the c-- code seems correct, but the executable code
>>>       
>> The call to strcmp passes the wrong value for the first argument:
>>
>>          _fooret = foreign "C" strcmp (bits32[a_T_155], 
>> str__a_da_289565476_1);
>>
>> The first argument here is not the address of the string: it is the 
>> result of loading 32 bits from the address of the string. You want:
>>
>>          _fooret = foreign "C" strcmp (a_T_155, str__a_da_289565476_1);
>>     
> Thanks.
>
> What's the maximum supported size of virtual registers? Some x86 
> compilers store long double as 12 bytes of which only 80 bits are 
> actually used.   Can I declare a bits96 register?  How qc-- handle long 
>   

File "a.c--", line 43, characters 10-61: Warning: No acceptable widths 
for %f2f on target 'x86'; asked for 96->2->64, target accepts 32->2->64 
or 64->2->32

It seems qc-- does not support long double.  How much effort is needed 
to support a new floating pointer type?

Thanks,
Ning
_______________________________________________
Cminusminus mailing list
[email protected]
https://www.eecs.harvard.edu/mailman/listinfo/cminusminus