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

Missing the "code" type #1

Open
Wdestroier opened this issue Jan 20, 2021 · 1 comment
Open

Missing the "code" type #1

Wdestroier opened this issue Jan 20, 2021 · 1 comment

Comments

@Wdestroier
Copy link

I was comparing the decompiler output from Ghidra and Ida and apparently "code" is equivalent to the int type. Maybe it is dependent on the architecture or/and something else? I guess it may be equivalent to an unsigned long long in the x86_64 architecture...

@Danil6969
Copy link
Owner

The code is actually void internally in Ghidra so code* is void* as well. That's because it just points to somewhere but its size cannot be measured (function may have any size up to the last return or even beyond that if far branching is used) nor pointer can be dereferenced (loaded or stored if thinking in pcode fashion), it can only be called but you need calling convention along with list of arguments types and type of returned value and all of this is varying from function to function so type is just void.

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

No branches or pull requests

2 participants