17 lines
983 B
Markdown
17 lines
983 B
Markdown
## CRT and Process Startup
|
|
|
|
- Roots: `entry` at `0x005a313b`, CRT helpers in the `0x005a2d..0x005ad4..` range, and
|
|
`app_bootstrap_main` at `0x00484440`.
|
|
- Trigger/Cadence: single process startup path before shell or engine services exist.
|
|
- Key Dispatchers: `startup_init_tls_state`, `startup_init_file_handle_table`,
|
|
`startup_run_init_callback_table`, `__setenvp`, `startup_build_argv`,
|
|
`___crtGetEnvironmentStringsA`, then `app_bootstrap_main`.
|
|
- State Anchors: CRT heap and file-handle tables; process environment and argv storage.
|
|
- Subsystem Handoffs: exits the generic CRT path at `app_bootstrap_main`, which becomes the first
|
|
RT3-owned coordinator.
|
|
- Evidence: `artifacts/exports/rt3-1.06/startup-call-chain.md`,
|
|
`artifacts/exports/rt3-1.06/function-map.csv`.
|
|
- Open Questions: exact ownership boundary between compiler CRT shims and the first game-owned
|
|
bootstrap helper; whether any nontrivial startup callbacks seed game globals before
|
|
`app_bootstrap_main`.
|
|
|