[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variables in yyparse
From: |
Laurence Finston |
Subject: |
Re: variables in yyparse |
Date: |
Sun, 19 Dec 2004 23:32:03 +0100 |
User-agent: |
IMHO/0.98.3+G (Webmail for Roxen) |
> > From: Hans Aberg <address@hidden>
>
> All new computers, personal and up, use virtual memory. Then the OS will do
> exactly the same thing for you, but automatically.
>
According to my understanding, virtual memory and paging allow a process to
have an address space much larger than the actual main memory available to
that process. However, dynamic memory allocation takes place on the heap,
which is of fixed size. So these are "two different pairs of shoes", as we
say in German.
I think this code:
for (;;)
new int;
will eventually cause a `bad_alloc' to be thrown, but will not cause pages to
be written to files. No C++ on this machine, so I can't test it.
Laurence
- Re: variables in yyparse, Hans Aberg, 2004/12/18
- Re: variables in yyparse, Hans Aberg, 2004/12/19
- Re: variables in yyparse,
Laurence Finston <=
- Re: variables in yyparse, Paul Hilfinger, 2004/12/19
- Re: variables in yyparse, Laurence Finston, 2004/12/19
- Re: variables in yyparse, Paul Eggert, 2004/12/20
- Re: variables in yyparse, Akim Demaille, 2004/12/20
- Re: variables in yyparse, Laurence Finston, 2004/12/20
- Re: variables in yyparse, Laurence Finston, 2004/12/20
- Re: variables in yyparse, Laurence Finston, 2004/12/20
- Re: variables in yyparse, Hans Aberg, 2004/12/19
- Re: variables in yyparse, Hans Aberg, 2004/12/19
- Re: variables in yyparse, Laurence Finston, 2004/12/19