Thread overview | |||||
---|---|---|---|---|---|
|
December 10, 2008 [Issue 2505] New: Inline Assembly: Getting offset of a label | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2505 Summary: Inline Assembly: Getting offset of a label Product: D Version: 1.037 Platform: PC URL: http://paste.dprogramming.com/dpkafbh9 OS/Version: Windows Status: NEW Keywords: spec Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: p0lycyb0rg@gmail.com Dear bugfixers of D, D's offsetof does not seem to work in inline assembly. I'm afraid, this hinders the use of D as a system programming language and I'd really appreciate this implementation in version 1, too. Let's move on an example: -- import std.stdio; void main() { asm { call L1; L1: pop EBP; sub EBP, offsetof L1; } } -- Line 9: undefined identifier 'L1' I have read your other bug reports about offsetof and on the first 2 asm lines I'm using your 'workaround' way. But the 3rd line of asm code is very important to implement PIC (Position Independent Code). I'm sure you understand it's importance and looking forward to get the bug fixed as soon as possible. Thank you very much. Regards, Robert Forrest -- |
January 23, 2012 [Issue 2505] Inline Assembly: Getting offset of a label | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2505 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-01-22 21:10:01 PST --- It's a longstanding problem with the inline assembler. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 27, 2012 [Issue 2505] Inline Assembly: Getting offset of a label | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2505 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #2 from yebblies <yebblies@gmail.com> 2012-12-27 18:27:53 EST --- *** This issue has been marked as a duplicate of issue 1829 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation