How to get the body of a function/asm statement in hexadecimal
Ruby the Roobster
rubytheroobster at yandex.com
Sun Jan 29 21:45:11 UTC 2023
I'm trying to do something like
```d
void main()
{
auto d = &c;
*d.writeln;
}
void c()
{
}
```
In an attempt to get the hexadecimal representation of the
machine code of a function. Of course, function pointers cannot
be dereferenced. What do?
Furthermore, I would like to be able to do the same for an `asm`
statement.
More information about the Digitalmars-d-learn
mailing list