Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8308293

A linker should expose the layouts it supports

XMLWordPrintable

      When working with the Linker, it can be difficult to discover which C types does the linker support. For instance, if some code needs to work with a C "long", what is its corresponding "canonical layout" for a given linker instance?

      Such layout will obviously depend on the platform for which the linker is defined (e.g. on Linux/x64 such a layout would be equivalent to JAVA_LONG, on Windows/x64 such a layout would be equivalent to a JAVA_INT).

      Since the set of types supported by a linker is linker-specific, the API should capture this property in a very loose fashion - e.g. just a map from ABI type names to canonical layouts.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: