| Issue |
165041
|
| Summary |
WebAssembly backend stalls on massive autogenerated C file
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
singingwolfboy
|
This issue was originally reported on the `emscripten` project: https://github.com/emscripten-core/emscripten/issues/23557 The maintainer suggested that I report it here, instead.
I am trying to compile the [libpostal](https://github.com/openvenues/libpostal) project in WASM, using [emscripten](https://emscripten.org). However, libpostal includes a massive, autogenerated C file that is full of `goto` statements: [`scanner.c`](https://github.com/openvenues/libpostal/blob/master/src/scanner.c). This file compiles just fine using other LLVM backend, but for some reason, it seems to trigger pathological behavior on the WebAssembly backend: the compilation process steadily climbs in memory usage until it is killed from OOM.
Further details are available in the [`emscripten` issue](https://github.com/emscripten-core/emscripten/issues/23557). I am happy to help with debugging this in whatever way I can, but I am very much not familiar with this particular part of the tech stack -- I'm more familiar with with scripting languages than compiled languages.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs