How-to
How-to
The pages of this chapter are recipes: each one takes a single task you may have with the BB2 C port, its tools or Blitz Basic sources, and shows the commands that do it, with an example you can follow on your own machine. They assume that you have built the port (Building the BB2 C port). Where a recipe needs background, it links the chapter that explains it.
The first three recipes are about compiling: with the libraries a source needs, and with AmiBlitz3’s libraries. The next two turn sources into text you can read, and the last one runs the port’s tests.
Choose the variant a source needs and make a blitz2 directory with its libraries.
Where blitz2 looks for userlibs, and which acidlibs and deflibs the RWE userlibs need.
Compile and run an AmiBlitz3 source with blitz2-ab3, in a script or from the Linux host.
Turn a .bb2 file into plain text with bbsrc or tedsrc, with the right libraries.
Turn a library source in the BB22 format into one the editor and the compiler read.
Run the tests with CTest, find a test’s name, and see where results and logs go.