Merge pull request #1031 from AleoHQ/rfc-recursion

[RFC] Add concrete proposal for compiler option.
This commit is contained in:
Alessandro Coglio 2021-06-11 11:38:53 -07:00 committed by GitHub
commit c0a4f288c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,6 +376,25 @@ As the Leo compiler sometimes performs expensive computations,
it may be important that it provide periodic output to the user,
to reassure them that the compiler is not stuck.
We will add a flag to the `leo` CLI whose long form is
```
--inline-limit
```
and whose short form is
```
-il
```
This option is followed by a number (more precisley, a positive integer)
that specifies the limit to the depth of the inlining stack.
The name of this option has been chosen
according to a `--...-limit` template
that may be used to specify other kinds of limits,
as discussed later.
In Aleo Studio, this compiler option is presumably specified
via GUI preferences and build configurations.
## Circularity Detection
Besides the depth of the inlining call stack,