Skip to content

Commit

Permalink
attempt to update image links in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shwestrick committed Sep 11, 2024
1 parent 7d582df commit b64c5d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ description: >- # this means to ignore newlines until "baseurl:"
Documentation for the MPLLang/mpl repo, especially source-code documentation
of the MPL compiler and run-time system. This is intended for the developers
of MPL and anyone interested in contributing to the MPL project.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
baseurl: "/mpl" # the subpath of your site, e.g. /blog
url: "https://mpllang.github.io" # the base hostname & protocol for your site, e.g. http://example.com
# twitter_username: jekyllrb
# github_username: jekyll

Expand Down
4 changes: 2 additions & 2 deletions docs/runtime-sys/mem-manage/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Pointers to objects always point to the beginning of the payload. These
pointers are known as "object pointers", and are identified by the C type
[`objptr`](https://github.com/MPLLang/mpl/blob/5bcbcc1883a12edf0dd0f29bc46e65c2cc2ff65e/runtime/gc/objptr.h#L13) throughout `runtime/gc/`.

![General layout of any MPL heap object](/assets/heap-obj-model.png){:width="50%"}
![General layout of any MPL heap object]({{site.baseurl}}/assets/heap-obj-model.png){:width="50%"}

## Object Types

Expand All @@ -28,7 +28,7 @@ sequence objects, and stack objects. (See `NORMAL_TAG`, `SEQUENCE_TAG`, and
`STACK_TAG` in the definition of the enum [`GC_objectTypeTag`](https://github.com/MPLLang/mpl/blob/5bcbcc1883a12edf0dd0f29bc46e65c2cc2ff65e/runtime/gc/object.h#L19-L26).)
The type of every object is recorded in its [header](header.html).

![Normal, sequence, and stack objects](/assets/heap-obj-types.png){:width="85%"}
![Normal, sequence, and stack objects]({{site.baseurl}}/assets/heap-obj-types.png){:width="85%"}

* **Normal objects** are flexible: they may contain any number of fields, fixed at
the time of allocation (and known at compile time). Each field contains
Expand Down

0 comments on commit b64c5d2

Please sign in to comment.