modus
Menu
On this page

The module store_library

A library module that no boot image holds: the test of an import of a disk process from the store module_files.

What it is for. The module store_importer imports it by its hash. The modus tool writes both files in the store module_files of the disk of the test part disk_processes; the root service finds this file by the hash of its bytes, with no name, and gives it to the loader beside the boot image.

Example, on a machine with that disk: start_from_disk("store_importer", hash); the log gets the line of the root service that names the entry store_library, then the line of the process with the result of triple(14).

See: Module contract: A module from a disk

store_library module with no entry

Hash
d804d9538529fbb3bbafe03c8d1fd91443237d7fe12139a3874101b35eb76f3e
Size
8192 bytes
Exports
1
Imports
0
Imported by
1
License
MIT

A library module that no boot image holds: the test of an import of a disk process from the store module_files

FactValue
KindModules with no entry
Sourcesrc/modules/tests/store_library
Boot imageno: not in the boot image
Build settingsnone: the defaults of the source
Importsnone
Imported by

Neighbours

What it imports, at its left, and what imports it, at its right: the part of the module graph that touches it.

store_library store_importer

Exports

ExportWhat it does
triple(value: Integer) -> Integergives three times a number

triple

triple(value: ) -> 

triple gives three times a number. The process store_importer calls it through its import slot, and checks the result.

Parameters
  • value:
Result
Source
src/modules/tests/store_library/store_library.odin:10

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

Integer wire form

A wire form of the module contract: one word of a call. A signed integer of 64 bits, in a register.