aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


client/vendor/msvcp60/README.md (1995B)


VC6 C++ runtime source for Linux

source/ contains 4,305 mechanically translated functions, dispatch metadata, 387 exception-handler mappings and non-code data initializers. The Linux Makefile compiles these C files directly. Windows continues to use its native vendor DLL. Normal builds never read the original DLL or regenerate source.

The source DLL is client-standalone-14.9.1/MSVCP60.DLL, SHA-256 2b6b93c2d66969eb00258e2b5ad6172decebada096e3b1b077a3380c80e4a072. Its guest base is rebased to 0x46000000, outside the guest heap. The pcrecomp revision is 904ac3129d0c9d05efbeec19a1dce6abbe7f5d26; translation.json also records the generation pipeline hash. The generation reported zero unsupported instructions. data-audit.json records zero retained executable-section bytes and no unresolved data references.

To produce a fresh staging tree from the retained local vendor DLL:

$env:PYTHONPATH='C:/path/to/ao/venv/Lib/site-packages'
& 'python3' tools/reconstruction/generate_msvcp.py

The generator writes tools/reconstruction/work/linux-msvcp/src and refuses to overwrite an existing staging source directory. Move the previous staging directory aside before regenerating. Review generated changes before copying individual files into this editable source tree. A second fresh generation reproduced all 47 source/header files byte-for-byte.

The Linux host resolves supported named string methods to the separately maintained runtime/guest_msvcp.c; other methods resolve to this generated C. Both use the same guest heap and 32-bit object layouts. Their exported data comes from this module. The string ABI report records native differential checks and remaining exception-path limitations.

The library's module initializer has executed successfully on Linux. This does not validate all stream operations: guest stdio, locale conversion, exception construction and other CRT services still require implementation.