[SG10] Adding a macro to identify the ABI

Saleem Abdulrasool compnerd at compnerd.org
Sun Jan 8 20:30:40 CET 2017


std::type_info comes from the runtime.  Someone needs to implement it for
our to be provided.

Having the compiler identify the ABI means that the runtime has a concrete
manner to determine what ABI is being requested.  On certain platforms it
is not possible to determine the ABI without having the compiler indicate
to you which is in use.

Furthermore, this would allow verification that the user code and the
runtime agree on the ABI itself.

On Sun, Jan 8, 2017 at 11:24 AM Jens Maurer <Jens.Maurer at gmx.net> wrote:

> On 01/08/2017 05:19 PM, Saleem Abdulrasool wrote:
>
> > Although the differences in PMFs could require different behaviors, I
> think that encouraging users to use more portable code is preferable.
>
>
>
> Agreed on the latter part.
>
>
>
> > As to examples of the runtime changing would be the implementation of
> std::type_info.
>
>
>
> Ok, but that comes with your compiler or with your standard library,
> anyway, right?
>
>
>
> So, where's the point of having a standard-looking ABI macro?
>
>
>
> Jens
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/features/attachments/20170108/e909101a/attachment.html 


More information about the Features mailing list