Files
binary/CHANGELOG.md
T

59 lines
3.6 KiB
Markdown
Raw Permalink Normal View History

2026-10-26 06:02:30 -05:00
# Changelog
Each version's changes, newest first. Versions follow [semantic
versioning](https://semver.org).
## Unreleased
- `binary::pe` writes an executable's resources: `resources`, each by its type, number,
and language, as `.rsrc` holds them, which the new `image.resources` directory names;
`icon_group`, an icon's images of PNG files, kept whole, and icon files, a PNG over 256
pixels left out, added by `resources::add_icon` as group 1, which Explorer and
`LoadImageW` find; and `version_resource`, what the file's properties say: its title,
version, and file's name. `find_resource` finds one in an executable's file again, and
`subsystem_windows` and `subsystem_console` name the subsystems.
- What it reads of `core`'s containers and views, and of std's, it reads by
their properties, as `.span` rather than `.view()`, `.last` rather than
`.last()`, and `blank()` rather than `empty()`, as the compiler and std now
name them.
- The standard library is required as the package `sakura/std`, and each
library names the modules it reads: `std::io`, where `byte_writer` is now,
and, for `dwarf`, `pe`, and `pdb`, `std::containers`, where `interner` is.
## 1.0.0 - Unreleased
- The five libraries Sakura writes executables with, until now each a
repository of its own, gathered into one, each still a library of its own:
`binary::amd64`, `binary::elf`, `binary::dwarf`, `binary::pe`, and
`binary::pdb`, which were `malunal::amd64` and the rest. Their folders are
named for them alone, as `amd64/`, and their tests are in `tests/amd64/` and
the rest, sharing one `main`. A project requires the repository once and
names among its `deps` only the libraries it reads.
- What each held at 1.0.0 in its own repository, of 2026-10-24:
- **`amd64`**: the encoder of the Sakura compiler, moved out of its `native`
folder, with its tests. `assembly::rex` is public, so code beside the
library writes prefixes as it does, and the fields of `mem` and `assembly`
the compiler reads are public.
- **`elf`**: the ELF writer of the Sakura compiler, moved out of its `native`
folder, with tests. Its types lost their `elf_` prefixes, as `elf::image`
and `elf::segment`, a section's kind is an enum, and the machine an image
is for may be given. Writing the file is the caller's: the library gives
its bytes.
- **`dwarf`**: DWARF's numbers and encodings, moved out of the Sakura
compiler's DWARF writer, with tests: numbers, abbreviations, tables of
strings, the headers of units and lists, line programs and their table, and
the descriptions of frames. What the compiler says of its programs stays
the compiler's.
- **`pe`**: the PE writer of the Sakura compiler, moved out of its `native`
folder, with tests. Its types lost their `pe_` prefixes, as `pe::image`,
the subsystem may be given, and the exception and debug directories are
named besides the imports and their addresses. How functions unwind:
`unwind_info`, `unwind_table`, and `function_table`. The debug directory
naming a PDB file: `debug_entry`, `codeview_record`, and `stamp_codeview`,
and `section_headers`, which a PDB file keeps. Writing the file is the
caller's: the library gives its bytes.
- **`pdb`**: the first version, written for the Sakura compiler's Windows
executables: the MSF file and the streams naming the file, of types and
IDs, of modules, of names, and of globals and publics; CodeView's type
records and symbols; each module's lines, inlinees' lines, and inline
sites' annotations; and the GUID naming the file, made from what it holds.