Skip to content

Commit a99a8b0

Browse files
committed
Remove obsolete discusison of runtime, promote Linkage to chapter.
1 parent 744085e commit a99a8b0

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

src/doc/reference.md

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3898,44 +3898,7 @@ state. Subsequent statements within a function may or may not initialize the
38983898
local variables. Local variables can be used only after they have been
38993899
initialized; this is enforced by the compiler.
39003900

3901-
# Runtime services, linkage and debugging
3902-
3903-
The Rust _runtime_ is a relatively compact collection of Rust code that
3904-
provides fundamental services and datatypes to all Rust threads at run-time. It
3905-
is smaller and simpler than many modern language runtimes. It is tightly
3906-
integrated into the language's execution model of memory, threads, communication
3907-
and logging.
3908-
3909-
### Memory allocation
3910-
3911-
The runtime memory-management system is based on a _service-provider
3912-
interface_, through which the runtime requests blocks of memory from its
3913-
environment and releases them back to its environment when they are no longer
3914-
needed. The default implementation of the service-provider interface consists
3915-
of the C runtime functions `malloc` and `free`.
3916-
3917-
The runtime memory-management system, in turn, supplies Rust threads with
3918-
facilities for allocating releasing stacks, as well as allocating and freeing
3919-
heap data.
3920-
3921-
### Built in types
3922-
3923-
The runtime provides C and Rust code to assist with various built-in types,
3924-
such as arrays, strings, and the low level communication system (ports,
3925-
channels, threads).
3926-
3927-
Support for other built-in types such as simple types, tuples and enums is
3928-
open-coded by the Rust compiler.
3929-
3930-
### Thread scheduling and communication
3931-
3932-
The runtime provides code to manage inter-thread communication. This includes
3933-
the system of thread-lifecycle state transitions depending on the contents of
3934-
queues, as well as code to copy values between queues and their recipients and
3935-
to serialize values for transmission over operating-system inter-process
3936-
communication facilities.
3937-
3938-
### Linkage
3901+
# Linkage
39393902

39403903
The Rust compiler supports various methods to link crates together both
39413904
statically and dynamically. This section will explore the various methods to

0 commit comments

Comments
 (0)