Inter-compiler portability of asm between gdc and ldc2 (and dmd)
rikki cattermole
rikki at cattermole.co.nz
Wed Jul 15 09:51:51 UTC 2020
On 15/07/2020 9:38 PM, claptrap wrote:
>
> Do you pull them out manually or is there a way to get the start and end
> address of a function in a running program? So could I make an exe that
> when run dumps the bytes of one of its functions?
Another option:
https://stackoverflow.com/questions/1647359/is-there-a-way-to-get-gcc-to-output-raw-binary
Get gcc to dump the function (which doesn't use globals or other
functions ext.) as a raw binary file. Then you can do a string import at
compile time :)
More information about the Digitalmars-d
mailing list