Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implements the array to pointer conversion in C ABI processor #1293

Merged

Conversation

ivg
Copy link
Member

@ivg ivg commented Apr 12, 2021

All arrays are implicitly converted to pointers when passed to a
function, therefore when we see elt p[], elt p[X], or
elt (*p)[X] in the prototype we shall convert them to elt *.

The conversion is applied in the C ABI processor application function
as it is a feature of the language not of an individual ABI. This will
enable this feature in all C ABI implementations (processors) as they
will not see arrays anymore.

All arrays are implicitly converted to pointers when passed to a
function, therefore when we see `elt p[]`, `elt p[X]`, or
`elt (*p)[X]` in the prototype we shall convert them to `elt *`.

The conversion is applied in the C ABI processor application function
as it is a feature of the language not of an individual ABI. This will
enable this feature in all C ABI implementations (processors) as they
will not see arrays anymore.
@ivg ivg merged commit 0fb8a37 into BinaryAnalysisPlatform:master Apr 13, 2021
@ivg ivg deleted the implements-array-to-pointer-conversion branch April 13, 2021 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant