diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2018-04-26 17:09:26 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2018-05-28 14:41:39 +0200 |
commit | 5021c6bd8e08fb465152638c9a56108d317002f8 (patch) | |
tree | 86d116a50d6e171162b14ab67619b1d90db4bb52 /kernel | |
parent | 9d6f19dd94f44a96cc5a9b61f22943ce457ce51c (diff) |
Make some comments more precise about compilation of cofixpoints
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/byterun/coq_interp.c | 2 | ||||
-rw-r--r-- | kernel/cbytegen.ml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/byterun/coq_interp.c b/kernel/byterun/coq_interp.c index 8ac1ecc79..a944dbb06 100644 --- a/kernel/byterun/coq_interp.c +++ b/kernel/byterun/coq_interp.c @@ -1032,7 +1032,7 @@ value coq_interprete CHECK_STACK(nargs+1); sp -= nargs; for (i = 0; i < nargs; i++) sp[i] = Field(accu, i + 2); - *--sp = accu; // Last argument is the pointer to the suspension + *--sp = accu; // Leftmost argument is the pointer to the suspension print_lint(nargs); coq_extra_args = nargs; pc = Code_val(coq_env); // Trigger evaluation diff --git a/kernel/cbytegen.ml b/kernel/cbytegen.ml index a771945dd..5f6d2d0ee 100644 --- a/kernel/cbytegen.ml +++ b/kernel/cbytegen.ml @@ -77,6 +77,7 @@ open Pre_env (* ai' = [A_t | accumulate | [Cfx_t | fcofixi] | arg1 | ... | argp ] *) (* If such a block is matched against, we have to force evaluation, *) (* function [fcofixi] is then applied to [ai'] [arg1] ... [argp] *) +(* (note that [ai'] is a pointer to the closure, passed as argument) *) (* Once evaluation is completed [ai'] is updated with the result: *) (* ai' <-- *) (* [A_t | accumulate | [Cfxe_t |fcofixi|result] | arg1 | ... | argp ] *) |