diff options
Diffstat (limited to 'content/zettel/1b9a.md')
-rw-r--r-- | content/zettel/1b9a.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/content/zettel/1b9a.md b/content/zettel/1b9a.md new file mode 100644 index 0000000..7d2e8f5 --- /dev/null +++ b/content/zettel/1b9a.md @@ -0,0 +1,20 @@ ++++ +title = "LegUp local memory support" +author = "Yann Herklotz" +tags = [] +categories = [] +backlinks = ["1b9"] +forwardlinks = ["1b9b"] +zettelid = "1b9a" ++++ + +LegUp supports local memories in functions by declaring the RAM's once +with their initial values. The main problem with this is that if the +function is called multiple times, but is using the same RAM underneath +to model it, it needs to be reset to the initial state whenever the +function is called. + +Therefore only using the RAM initialisation to set the initial value is +not enough, and it therefore has to be initialised everytime the +function is called. This is done in LegUp by copying the memory from +another RAM over everytime. |