kripken/emscripten — Issue #295: Mixed .bc (debug and no debug) failed 
Author: Edrom01
Created: 2012-03-05 16:48:11+00:00
State: open

Hi,
I work on a project with a lot of files (windows). The final linkage of all .bc files is about 30 Mo. If I generate all the .bc files with the -g option, llvm-link crash because it is out of memory.

So, my plan was to only compile a selected list of files with the -g option in order to prevent the final .bc to be to big.
I started with just one file, the final bc has grown about 4 Mo, the linkage works, so the final .bc is around 34 Mo.
But the compilation to javascript failed :

```
#
# Fatal error in CALL_AND_RETRY_2
# Allocation failed - process out of memory
#
```

Any idea ?
Thanks