2015-07-27 05:35:19 -04:00
USING: byte-arrays compiler.codegen.relocation help.markup help.syntax
strings ;
2014-05-09 09:38:28 -04:00
IN: compiler.codegen.labels
2015-07-27 05:35:19 -04:00
HELP: binary-literal-table
{ $var-description "A relocation table used during code generation to keep track of binary relocations. Binary literals are stored at the end of the generated assembly code on the code heap." } ;
2016-08-01 15:50:30 -04:00
HELP: define-label
{ $values { "name" string } }
{ $description "Defines a new label with the given name. The " { $slot "offset" } " slot is filled in later." } ;
HELP: emit-binary-literals
{ $description "Emits all binary literals in the " { $link binary-literal-table } "." } ;
2015-07-27 05:35:19 -04:00
HELP: rel-binary-literal
{ $values { "literal" byte-array } { "class" "relocation class" } }
{ $description "Adds a binary literal to the relocation table." }
{ $see-also binary-literal-table } ;
2014-10-19 07:41:45 -04:00
HELP: resolve-label
{ $values { "label/name" { $link label } " or " { $link string } } }
{ $description "Assigns the current " { $link compiled-offset } " to the given label." } ;