Inline Assembler: Getting the offset of a label. How?

poly p0lycyb0rg at gmail.com
Mon Dec 8 01:54:18 PST 2008


Hello d folk,

I have a question about D 1.0 inline asm. Has anyone an idea how to get
the offset of a label without using "call Label1", then "pop eax".
Actually there would be an offsetof but it seems not to work.

In other (inline) assemblers I'd just use offset or addr, but it seems
that my Win32 DMD 1.037 does not understand it.

I'd be really helpful for any solution, because I need it to write
position independend code. Thanks.

regards, pimp


More information about the Digitalmars-d-learn mailing list