Skip to content

Commit 0f46fc2

Browse files
wandererjfbastien
authored andcommitted
Remove Mutable Gobals from future features (#1014)
* Remove Mutable Gobals from future features * Readded global array types * Update FutureFeatures.md
1 parent dfc0d51 commit 0f46fc2

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

FutureFeatures.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -472,20 +472,9 @@ lighter-weight alternative to load-time polyfilling (approach 2 in
472472
were to be standardized and performed natively such that no user-space translation
473473
pass was otherwise necessary.
474474

475-
### Mutable global variables
476-
477-
In the MVP, there are no global variables; C/C++ global variables are stored in
478-
linear memory and thus accessed through normal
479-
[linear memory operators](Semantics.md#linear-memory-operators).
480-
[Dynamic linking](DynamicLinking.md) will add some form of immutable global
481-
variable analogous to "symbols" in native binaries. In some cases, though,
482-
it may be useful to have a fully mutable global variable which lives outside
483-
linear memory. This would allow more aggressive compiler optimizations (due to
484-
better alias information). If globals are additionally allowed array types,
485-
significant portions of memory could be moved out of linear memory which could
486-
reduce fragmentation issues. Languages like Fortran which limit aliasing would be
487-
one use case. C/C++ compilers could also determine that some global variables never
488-
have their address taken.
475+
### Array globals
476+
477+
If globals are allowed array types, significant portions of memory could be moved out of linear memory which could reduce fragmentation issues. Languages like Fortran which limit aliasing would be one use case. C/C++ compilers could also determine that some global variables never have their address taken.
489478

490479
### Streaming Compilation
491480

0 commit comments

Comments
 (0)