My experience is that fold-const.c requires 20 MB of memory (not including the size of the executable) to compile with -Os. That's the biggest.Is that typical/expected?
It doesn't seem too big.
Because it just occurred to me that maybe the lack of a "normal" implementation of alloca() is causing memory to not be released, and it's taking more space than it needs to.
It may use a little more memory, but not much. Paolo