Skip to content

Commit

Permalink
[mono][aot] Add a 'compile-in-child' AOT argument (dotnet#98866)
Browse files Browse the repository at this point in the history
* [mono][aot] Collect command line arguments and pass them to the aot compiler.

* [mono][aot] Extract the code invoking external tools into separate functions.

* [mono][aot] Add a 'compile-in-child' aot argument.

When set, the JIT compilation is done in a child process. This helps to reduce overall memory
usage since memory used during JITting is no longer going to be reserved when
running external tools like opt/llc.

* Enable by default on wasm on unix.

* Handle spaces correctly.

* Disable on windows for now.

* Add dedup support.

* Add windows support.

* Enable on wasm on windows.

* Fix windows support.

* Disable on windows.
  • Loading branch information
vargaz authored and radical committed Mar 6, 2024
1 parent 26633fc commit 21d174a
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 75 deletions.
Loading

0 comments on commit 21d174a

Please sign in to comment.