EMSCRIPTEN RUNTIME COMPONENT NOTICES
Exact SDK package mapping2.0.8/e4ed6c79f4db8b175d9bbe55869b697aba9bcf2a; actual Emscripten source d059fd603d0b45b584f634dc2365bc9e9a6ec1dd.
Conservative trace-listed runtime notices before LTO/metaDCE; compiler-rt and musl have separate accompanying notices.


========================================================================
system/lib/emmalloc.cpp
https://raw.githubusercontent.com/emscripten-core/emscripten/d059fd603d0b45b584f634dc2365bc9e9a6ec1dd/system/lib/emmalloc.cpp

/*
 * Copyright 2018 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 *
 * Simple minimalistic but efficient sbrk()-based malloc/free that works in
 * singlethreaded and multithreaded builds.
 *
 * Assumptions:
 *
 *  - Pointers are 32-bit.
 *  - Maximum individual allocation size is 2GB-1 bytes (2147483647 bytes)
 *  - sbrk() is used to claim new memory (sbrk handles geometric/linear 
 *  - overallocation growth)
 *  - sbrk() can be used by other code outside emmalloc.
 *  - sbrk() is very fast in most cases (internal wasm call).
 *
 * Invariants:
 *
 *  - Per-allocation header overhead is 8 bytes, smallest allocated payload
 *    amount is 8 bytes, and a multiple of 4 bytes.
 *  - Acquired memory blocks are subdivided into disjoint regions that lie
 *    next to each other.
 *  - A region is either in used or free.
 *    Used regions may be adjacent, and a used and unused region
 *    may be adjacent, but not two unused ones - they would be
 *    merged.
 *  - Memory allocation takes constant time, unless the alloc needs to sbrk()
 *    or memory is very close to being exhausted.
 *
 * Debugging:
 *
 *  - If not NDEBUG, runtime assert()s are in use.
 *  - If EMMALLOC_DEBUG is defined, a large amount of extra checks are done.
 *  - If EMMALLOC_DEBUG_LOG is defined, a lot of operations are logged
 *    out, in addition to EMMALLOC_DEBUG.
 *  - Debugging and logging directly uses console.log via uses EM_ASM, not
 *    printf etc., to minimize any risk of debugging or logging depending on
 *    malloc.
 */


========================================================================
system/lib/libc/crt1_reactor.c
https://raw.githubusercontent.com/emscripten-core/emscripten/d059fd603d0b45b584f634dc2365bc9e9a6ec1dd/system/lib/libc/crt1_reactor.c

/*
 * Copyright 2020 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 */


========================================================================
system/lib/libc/extras.c
https://raw.githubusercontent.com/emscripten-core/emscripten/d059fd603d0b45b584f634dc2365bc9e9a6ec1dd/system/lib/libc/extras.c

/*
 * Copyright 2018 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 */


========================================================================
system/lib/libc/wasi-helpers.c
https://raw.githubusercontent.com/emscripten-core/emscripten/d059fd603d0b45b584f634dc2365bc9e9a6ec1dd/system/lib/libc/wasi-helpers.c

/*
 * Copyright 2019 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 */


========================================================================
system/lib/sbrk.c
https://raw.githubusercontent.com/emscripten-core/emscripten/d059fd603d0b45b584f634dc2365bc9e9a6ec1dd/system/lib/sbrk.c

/*
 * Copyright 2019 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 *
*/


========================================================================
system/lib/standalone/standalone.c
https://raw.githubusercontent.com/emscripten-core/emscripten/d059fd603d0b45b584f634dc2365bc9e9a6ec1dd/system/lib/standalone/standalone.c

/*
 * Copyright 2019 The Emscripten Authors.  All rights reserved.
 * Emscripten is available under two separate licenses, the MIT license and the
 * University of Illinois/NCSA Open Source License.  Both these licenses can be
 * found in the LICENSE file.
 */


========================================================================
system/include/wasi/api.h

/**
 * THIS FILE IS AUTO-GENERATED from the following files:
 *   typenames.witx, wasi_snapshot_preview1.witx
 *
 * @file
 * This file describes the [WASI] interface, consisting of functions, types,
 * and defined values (macros).
 *
 * The interface described here is greatly inspired by [CloudABI]'s clean,
 * thoughtfully-designed, capability-oriented, POSIX-style API.
 *
 * [CloudABI]: https://github.com/NuxiNL/cloudlibc
 * [WASI]: https://github.com/WebAssembly/WASI/
 */
