RFR: 7903923: Derive C_* layouts directly from the Linker [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Jan 13 12:23:56 UTC 2025


On Mon, 13 Jan 2025 10:42:11 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

>> Depending on the platform, different `C_*`  correspond to different `JAVA_*` types. We can get those values directly from the linker.
>> 
>> This patch can allows us to have a common class for different platforms.
>> 
>> Please review, and thanks in advance!
>
> Nizar Benalla has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - use the canonical layout "long long" for C_LONG_LONG
>  - Merge remote-tracking branch 'upstream/master' into derive-C-layours-from-linker-p
>  - Fix the C_LONG layout in windows
>  - derive "C" types directly from the linker

What's the story with primitive typedef? Do they work? I believe they will go back to stuff like JAVA_INT and such, instead of picking the layout constant we have already emitted. E.g. 

`typedef int myInt`

-------------

PR Comment: https://git.openjdk.org/jextract/pull/269#issuecomment-2586961790


More information about the jextract-dev mailing list