factor/basis/compiler/constants/constants-docs.factor

110 lines
2.8 KiB
Factor
Raw Normal View History

USING: compiler.codegen.relocation help.markup help.syntax math vm ;
2015-03-02 05:28:15 -05:00
IN: compiler.constants
HELP: context-callstack-save-offset
{ $values { "n" integer } }
{ $description "Offset in bytes in the " { $link context } " struct to where the c callstack is saved." } ;
2016-05-20 07:35:08 -04:00
HELP: rc-absolute
{ $description "Absolute address in a four-byte location." } ;
2016-05-19 15:49:51 -04:00
HELP: rc-absolute-cell
2016-05-20 07:35:08 -04:00
{ $description "Indicates that the relocation is a cell-sized absolute address to an object in the VM." } ;
2016-05-19 15:49:51 -04:00
2015-03-02 05:28:15 -05:00
HELP: rt-cards-offset
{ $description "Relocation offset type for the cards table." }
{ $see-also rel-cards-offset } ;
HELP: rt-decks-offset
{ $description "Relocation offset type for the decks table." }
{ $see-also rel-decks-offset } ;
HELP: rt-literal
{ $description "Relocation type for a literal. The literal can be either an immediate such as a fixnum or " { $link f } " or an object reference." }
{ $see-also rel-literal } ;
2015-04-29 22:51:58 -04:00
HELP: string-offset
{ $values { "n" integer } }
{ $description "hm" } ;
2015-03-02 05:28:15 -05:00
HELP: vm-context-offset
{ $values { "n" integer } }
{ $description "Offset in bytes from the start of the vm struct to the context (ctx) field." } ;
2015-04-29 22:51:58 -04:00
ARTICLE: "compiler.constants" "VM memory layout constants"
"Common constants. All the values are given in relation to the bootstrap image being built."
2015-04-29 22:51:58 -04:00
$nl
"Constants that must match vm/memory.hpp:"
{ $subsections card-bits card-mark deck-bits }
"Constants that must match vm/layouts.hpp:"
{ $subsections
slot-offset
}
"Offsets to fields in the context struct:"
{ $subsections
2015-04-29 22:51:58 -04:00
context-callstack-bottom-offset
context-callstack-save-offset
context-callstack-seg-offset
context-datastack-offset
context-callstack-top-offset
context-retainstack-offset
}
"Offsets to field in the segment struct:"
{ $subsections
2015-04-29 22:51:58 -04:00
segment-end-offset
segment-start-offset
}
"Offsets to fields in the vm struct:"
{ $subsections
2015-04-29 22:51:58 -04:00
vm-context-offset
vm-fault-flag-offset
vm-signal-handler-addr-offset
vm-spare-context-offset
}
"Offsets to fields in data objects:"
{ $subsections
alien-offset
array-start-offset
byte-array-offset
callstack-length-offset
callstack-top-offset
float-offset
quot-entry-point-offset
string-offset
tuple-class-offset
2015-04-29 22:51:58 -04:00
word-entry-point-offset
2016-05-19 15:49:51 -04:00
}
"Relocation classes:"
2016-05-20 07:35:08 -04:00
{ $subsections
2016-05-19 15:49:51 -04:00
rc-absolute-cell
rc-absolute
rc-relative
rc-absolute-ppc-2/2
rc-absolute-ppc-2
rc-relative-ppc-2-pc
rc-relative-ppc-3-pc
rc-absolute-2
rc-absolute-1
rc-absolute-ppc-2/2/2/2
}
"Relocation types:"
2016-05-20 07:35:08 -04:00
{ $subsections
2016-05-19 15:49:51 -04:00
rt-dlsym
rt-entry-point
rt-entry-point-pic
rt-entry-point-pic-tail
rt-here
rt-this
rt-literal
rt-untagged
rt-megamorphic-cache-hits
rt-vm
rt-cards-offset
rt-decks-offset
rt-dlsym-toc
rt-inline-cache-miss
rt-safepoint
2015-04-29 22:51:58 -04:00
} ;
2015-03-02 05:28:15 -05:00
ABOUT: "compiler.constants"