# dmd.glue

Generate the object file for function declarations and critical sections.

#### Authors

Walter Bright

#### License

Boost License 1.0

Source: glue.d

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

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

- `bzeroSymbol`

  #### Declaration

  `Symbol* `bzeroSymbol`;`

  common location for immutable zeros

- `obj_symbols_towrite`

  #### Declaration

  `Dsymbols `obj_symbols_towrite`;`

  Append s to list of object files to generate later.

- `objbuf`

  #### Declaration

  `Outbuffer `objbuf`;`

  Prepare for generating obj file.

- `obj_end`

  #### Declaration

  `void `obj_end`(Library `library`, const(char)* `objfilename`);`

  Finish creating the object module and writing it to objbuf[]. Then either write the object module to an actual file, or add it to a `library`.

  #### Parameters

  `const(char)* `objfilename`` | what to call the object module
  `Library `library`` | if non-`null`, add object module to this `library`

- `genObjFile`

  #### Declaration

  `void `genObjFile`(Module `m`, bool `multiobj`);`

  Generate .obj file for Module.

- `totym`

  #### Declaration

  `tym_t `totym`(Type `tx`);`

  Return back end type corresponding to D front end type.

- `toSymbol`

  #### Declaration

  `Symbol* `toSymbol`(Type `t`);`

- `getBzeroSymbol`

  #### Declaration

  `Symbol* `getBzeroSymbol`();`

  Generate readonly symbol that consists of a bunch of zeros. Immutable Symbol instances can be mapped over it. Only one is generated per object file.

  #### Return Value

  bzero symbol