How do compilers manage their memory size?

Compilers can compile a huge amount of source code. This giant code is translated into AST at the compilation stage. I believe that if the code is huge, this AST will also become huge.

Can we assume that the compiler will never run out of memory on a modern computer by building an AST and storing it in memory?

+4
source share
2 answers

With virtual memory, the compiler / linker tools really don't have to worry much about the amount of memory.

, , , [ ] - , .

, VM . , .

[ , . . .]

+1

, .

, : , , .

? , . , . .

0

Source: https://habr.com/ru/post/1655760/


All Articles