Finding your way in the repository
Before this page you should know the two sides of the build (Project structure).
The top level of the repository, with what each directory holds and when you would go there:
The programs
- programs/blitz2:
the compiler. Its source is shared by blitz2 and blitz2-ab3; the files
of AB3 mode are the ones whose names begin with
ab3(Inside the compiler source). - programs/ted: the editor, with its operating-system-free core in a directory of its own, the host tests of that core, and the host tools built on it.
- programs/ab3cli: the helper that blitz2-ab3 uses in place of the editor when it compiles from the Shell.
The libraries
- libs/acidlibs and libs/deflibs: one C file per library of Blitz Basic 2, and per AmigaOS library whose calls are declared.
- libs/userlibs: further libraries, such as the RWE userlibs.
- libs/variants: the library numbers of each variant.
- libs/include: the header for writing libraries in C.
- libs/tests: the test programs of the libraries, which run in the emulator, and their expected data, recorded from the original libraries.
Shared code, tools and tests
- shared:
code compiled into several programs, such as the file requester of the
editor and of the file requester library, the
.xtrasettings, and the tokeniser of AB3 mode. Each program compiles it itself, with its own settings. - tools: the host tools, in C. Their logic is in libraries of their own with tests; each tool is a small main program around one of them.
- host: the project that builds the host side.
- tests: the test suites that run in the emulator, their programs and data (Tests).
Originals, build and documentation
- archive: the unchanged original sources, and the place the downloaded original material goes. Nothing in it is ever edited.
- cmake: the cross compiler’s settings and the helpers of the build.
- docs: the developers’ notes: the analysis of the original sources, the notes on the translation, and the lists of deviations. They are written for people who work on the port, and they are the source of the facts on this site.
- openspec: specifications of new behaviour, such as AB3 mode, and the changes that introduced it.
- site: this website.
Comments that refer to the original
Many comments in the C code refer to the original:
| Comment | Meaning |
|---|---|
blitz2.s:13837, ted.s:1542 | the line of the original source a function translates |
BUG(orig) | a bug of the original that is not fixed yet |
Fixed with an issue number | the place of a fixed bug of the original |
DIFF | a place where the C code has to work differently from the original |
The reasons behind them are in the notes
in docs/.