dmd.toobj - D Programming Language
Description: D Programming Language
Keywords: D programming language

Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# dmd.toobj

Convert an AST that went through all semantic phases into an object file.
Authors:
Walter Bright
License:
Boost License 1.0

Source toobj.d

Documentation https://dlang.org/phobos/dmd_toobj.html

Coverage https://codecov.io/gh/dlang/dmd/src/master/src/dmd/toobj.d

void `write_pointers`(Type `type`, Symbol* `s`, uint `offset`);
  write pointer references for typed data to the object file a class type is considered to mean a reference to a class instance
  Parameters:

  Type `type` | type of the data to check for pointers
  Symbol* `s` | symbol that contains the data
  uint `offset` | offset of the data inside the Symbol's memory

void `write_instance_pointers`(Type `type`, Symbol* `s`, uint `offset`);
  write pointer references for typed data to the object file a class type is considered to mean the instance, not a reference
  Parameters:

  Type `type` | type of the data to check for pointers
  Symbol* `s` | symbol that contains the data
  uint `offset` | offset of the data inside the Symbol's memory

uint `baseVtblOffset`(ClassDeclaration `cd`, BaseClass* `bc`);
  Get offset of base class's vtbl[] initializer from start of csym. Returns ~0 if not this csym.

Copyright © 1999-2020 by the D Language Foundation | Page generated by Ddoc on Thu Jun 11 11:23:13 2020