[cxx-abi-dev] decimal floating point support for C++

Mark Mitchell mark at codesourcery.com
Tue Aug 4 22:11:15 UTC 2009


Lawrence Crowl wrote:

> I agree with Daveed here.  The real problem is that compilers either
> need to recognize the name or the libstdc++ source needs to specially
> mark them.  I lean towards doing the former.

I tend to agree.  The ABI has very little to say about the source
language; it's about the binary implementation.  Therefore, saying that
the class "std::decimal32" object is passed using the same calling
conventions as a _decimal32 scalar seems a reasonable way to handle
this.  It's an ugly special case, but it's an ugly special case imposed
upon us by the fact that the C++ committee insisted on making these
classes, rather than new datatypes, thereby making it hard to
interoperate with C.

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the cxx-abi-dev mailing list