Skip to navigation

Revs on the BBC Micro

Source code statistics

Here's a statistical breakdown of the source code for Revs. Click on the table headers to sort by that statistic. For more information, see the notes after the table.

CategoryInstructionsSubroutinesVariablesData (bytes)
3D objects671   (7.1%)19   (4.5%)18   (2.1%)359   (1.7%)
Car geometry457   (4.8%)20   (4.7%)15   (1.8%)54    (0.3%)
Dashboard406   (4.3%)12   (2.8%)26   (3.1%)437   (2.0%)
Drawing objects677   (7.1%)16   (3.8%)1    (0.1%)1     (0.0%)
Drawing pixels23    (0.2%)1    (0.2%)9    (1.1%)110   (0.5%)
Drawing the track820   (8.6%)22   (5.2%)9    (1.1%)116   (0.5%)
Drivers398   (4.2%)16   (3.8%)14   (1.7%)110   (0.5%)
Driving model822   (8.6%)32   (7.6%)47   (5.5%)54    (0.3%)
Extra tracks1600 (16.8%)124 (29.4%)195 (23.0%)6465 (29.9%)
Keyboard421   (4.4%)18   (4.3%)6    (0.7%)49    (0.2%)
Main Loop89    (0.9%)2    (0.5%)0    (0.0%)0     (0.0%)
Main loop305   (3.2%)14   (3.3%)1    (0.1%)1     (0.0%)
Maths (Arithmetic)250   (2.6%)12   (2.8%)1    (0.1%)128   (0.6%)
Maths (Geometry)185   (1.9%)14   (3.3%)1    (0.1%)256   (1.2%)
Screen buffer632   (6.6%)20   (4.7%)53   (6.2%)5822 (27.0%)
Screen mode179   (1.9%)5    (1.2%)10   (1.2%)62    (0.3%)
Setup111   (1.2%)6    (1.4%)7    (0.8%)82    (0.4%)
Sound100   (1.1%)6    (1.4%)4    (0.5%)78    (0.4%)
Tactics304   (3.2%)7    (1.7%)1    (0.1%)32    (0.1%)
Text407   (4.3%)25   (5.9%)73   (8.6%)1267  (5.9%)
Track data3     (0.0%)1    (0.2%)48   (5.7%)3777 (17.5%)
Track geometry651   (6.8%)30   (7.1%)19   (2.2%)309   (1.4%)
Workspaces0     (0.0%)0    (0.0%)290 (34.2%)2030  (9.4%)

Some notes on the above:

  • The instruction count does not include EQUB, EQUW, EQUD, EQUS or SKIP operatives; these are counted as data.
  • Each part of a multi-part subroutine counts as an individual subroutine.
  • The statistics are produced by a relatively simple static analysis of the source code. They are not 100% accurate, though they are pretty close.
  • The totals cover all code in the main game, including all of the track data files.