Skip to navigation


Source code statistics

[Acorn Electron version]

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

CategoryInstructionsSubroutinesVariablesData (bytes)
Charts188  (2.2%)8   (2.1%)0    (0.0%)0     (0.0%)
Copy protection33   (0.4%)5   (1.3%)6    (2.5%)59    (1.0%)
Dashboard374  (4.3%)23  (6.1%)3    (1.3%)29    (0.5%)
Drawing circles249  (2.9%)9   (2.4%)0    (0.0%)0     (0.0%)
Drawing lines572  (6.6%)19  (5.0%)0    (0.0%)0     (0.0%)
Drawing pixels141  (1.6%)5   (1.3%)4    (1.7%)30    (0.5%)
Drawing planets173  (2.0%)9   (2.4%)3    (1.3%)6     (0.1%)
Drawing ships928 (10.7%)14  (3.7%)11   (4.6%)2534 (44.1%)
Drawing the screen69   (0.8%)5   (1.3%)1    (0.4%)22    (0.4%)
Equipment201  (2.3%)4   (1.1%)1    (0.4%)24    (0.4%)
Flight353  (4.1%)24  (6.4%)0    (0.0%)2     (0.0%)
Keyboard280  (3.2%)13  (3.4%)1    (0.4%)18    (0.3%)
Loader368  (4.2%)5   (1.3%)0    (0.0%)22    (0.4%)
Main loop569  (6.6%)22  (5.8%)0    (0.0%)8     (0.1%)
Market297  (3.4%)15  (4.0%)1    (0.4%)68    (1.2%)
Maths (Arithmetic)772  (8.9%)51 (13.5%)0    (0.0%)0     (0.0%)
Maths (Geometry)321  (3.7%)15  (4.0%)2    (0.8%)64    (1.1%)
Moving542  (6.3%)16  (4.2%)0    (0.0%)0     (0.0%)
Save and load99   (1.1%)7   (1.9%)3    (1.3%)88    (1.5%)
Sound51   (0.6%)8   (2.1%)2    (0.8%)107   (1.9%)
Stardust375  (4.3%)7   (1.9%)0    (0.0%)0     (0.0%)
Start and end181  (2.1%)9   (2.4%)0    (0.0%)0     (0.0%)
Status138  (1.6%)7   (1.9%)0    (0.0%)0     (0.0%)
Tactics313  (3.6%)13  (3.4%)0    (0.0%)0     (0.0%)
Text315  (3.6%)28  (7.4%)4    (1.7%)1288 (22.4%)
Universe725  (8.4%)29  (7.7%)1    (0.4%)26    (0.5%)
Utility routines42   (0.5%)7   (1.9%)2    (0.8%)51    (0.9%)
Workspaces0    (0.0%)0   (0.0%)193 (81.1%)1301 (22.6%)

Some notes on the above:

  • The instruction count does not include EQUB, EQUW, EQUD, EQUS or SKIP operatives; these are counted as data even when they are buried in code (so EQUB &2C "BIT skip" instructions are counted as data, for example).
  • INCBIN files are not included in the counts, so the data count doesn't include bytes from binary source files.
  • 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 project, including loaders, docked and flight code, Tube code and ship data files.