# cod4map: reconstructing the Call of Duty 4 BSP compiler

> cod4map reconstructs the BSP compiler shipped with the 2007 Call of Duty 4 mod tools from its executable. Its C and C++ source builds a 32-bit Windows cod4map.exe; the project uses x87-oriented compiler flags because SSE2 floating-point generation changes BSP output bytes.

- Type: Case study
- Targets: Binary
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/prd0nja/cod4map>
- Primary source: <https://github.com/prd0nja/cod4map/blob/fc4226bc2c980b52ff690cd47b23e43c89cd889b/README.md>
- Catalog page: <https://awesomerea.org/resources/cod4map-reconstruction-case/>
- Record JSON: <https://awesomerea.org/resources/cod4map-reconstruction-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/cod4map-reconstruction-case/index.md)

## Requirements & limits

- **Prerequisites:** Use Visual Studio 2019 or later with the x86 C++ toolset and CMake 3.21 or later.
- **Prerequisites:** Run the resulting program from the Call of Duty 4 mod tools directory.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/prd0nja/cod4map/blob/fc4226bc2c980b52ff690cd47b23e43c89cd889b/README.md>

## More in Native binaries

- [AGS Aging Cartridge: disassembling version 7.0](https://awesomerea.org/resources/ags-aging-cartridge-case/index.md) · Case study
- [GoonFi V2: byte-identical Rust recompilation of a Solana program](https://awesomerea.org/resources/goonfi-v2-rust-recompilation-case/index.md) · Case study
- [HyperCard 1.2.2: a static recompilation of the classic Mac app](https://awesomerea.org/resources/hypercard-122-recomp-case/index.md) · Case study
- [openbst: a C reimplementation of BeSTspeech](https://awesomerea.org/resources/openbst-bestspeech-case/index.md) · Case study
- [OpenTV: a portable C rebuild of Centigram TruVoice](https://awesomerea.org/resources/opentv-truvoice-case/index.md) · Case study
- [L&H TruVoice: a portable C rebuild of tv_enua.dll](https://awesomerea.org/resources/lh-truvoice-decomp-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
