Defining a libgnat.so, libgnarl.so ABI

Paolo Bonzini bonzini@gnu.org
Thu Feb 25 15:02:00 GMT 2010


On 02/25/2010 08:51 AM, Arnaud Charlet wrote:
> The main "mangling" (in Ada parlance, we talk rather about "encoding")
> that is performed by GNAT is to handle packages ("namespace" in C++) and
> to differentiate overloaded functions (and there, a simple counter is all
> that is needed).

One of the advantages of "mangling" overloaded functions C++-style, 
instead of using a simple counter is that the latter makes it basically 
impossible to define a stable ABI.

Paolo



More information about the Gcc mailing list