Re: [C--] Segmentation fault
Ning Wang <[email protected]> Tue, 24 Mar 2009 20:47:41 -0700
| Newsgroups | gmane.comp.lang.c-- |
|---|---|
| Message-ID | <[email protected]> |
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 double? Ning _______________________________________________ Cminusminus mailing list [email protected] https://www.eecs.harvard.edu/mailman/listinfo/cminusminus