kripken/emscripten — pull request #594 by larsxschneider (2012-09-26 17:32:23+00:00)
Title: Add emcc option "--split <size>" to split javascript file.

Splits the resulting javascript file into pieces to ease debugging.
This option only works if Javascript is generated (target -o .js).

Files with function declarations must be loaded before main file upon execution.

Without "-g" option:
Creates files with function declarations up to the given size with the suffix "_functions.partxxx.js" and a main file with the suffix ".js".

With "-g" option:
Recreates the directory structure of the C source files and stores function declarations in their respective C files with the suffix ".js". If such a file exceeds the given size, files with the suffix ".partxxx.js" are created. The main file resides in the base directory and has the suffix ".js".