Here's a statistical breakdown of the source code for Elite-A. Click on the table headers to sort by that statistic. For more information, see the notes after the table.
Category | Instructions | Subroutines | Variables | Data (bytes) |
---|---|---|---|---|
Buying ships | 237Â Â Â (0.8%) | 7Â Â Â Â (0.5%) | 8Â Â Â Â (0.5%) | 1328Â Â Â (1.2%) |
Charts | 880Â Â Â (2.8%) | 33Â Â Â (2.2%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Copy protection | 6Â Â Â Â Â (0.0%) | 1Â Â Â Â (0.1%) | 1Â Â Â Â (0.1%) | 15Â Â Â Â Â (0.0%) |
Dashboard | 1170Â Â (3.7%) | 77Â Â Â (5.1%) | 9Â Â Â Â (0.6%) | 42Â Â Â Â Â (0.0%) |
Drawing circles | 921Â Â Â (2.9%) | 33Â Â Â (2.2%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Drawing lines | 2470Â Â (7.9%) | 84Â Â Â (5.6%) | 8Â Â Â Â (0.5%) | 60Â Â Â Â Â (0.1%) |
Drawing pixels | 299Â Â Â (1.0%) | 21Â Â Â (1.4%) | 13Â Â Â (0.9%) | 90Â Â Â Â Â (0.1%) |
Drawing planets | 712Â Â Â (2.3%) | 37Â Â Â (2.5%) | 4Â Â Â Â (0.3%) | 10Â Â Â Â Â (0.0%) |
Drawing ships | 3435Â (11.0%) | 56Â Â Â (3.7%) | 359Â (24.5%) | 75523Â (67.8%) |
Drawing suns | 661Â Â Â (2.1%) | 23Â Â Â (1.5%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Drawing the screen | 350Â Â Â (1.1%) | 28Â Â Â (1.9%) | 3Â Â Â Â (0.2%) | 97Â Â Â Â Â (0.1%) |
Encyclopedia | 456Â Â Â (1.5%) | 14Â Â Â (0.9%) | 78Â Â Â (5.3%) | 4412Â Â Â (4.0%) |
Equipment | 492Â Â Â (1.6%) | 11Â Â Â (0.7%) | 2Â Â Â Â (0.1%) | 264Â Â Â Â (0.2%) |
Flight | 1200Â Â (3.8%) | 72Â Â Â (4.8%) | 0Â Â Â Â (0.0%) | 2Â Â Â Â Â Â (0.0%) |
Keyboard | 1280Â Â (4.1%) | 68Â Â Â (4.5%) | 5Â Â Â Â (0.3%) | 74Â Â Â Â Â (0.1%) |
Loader | 428Â Â Â (1.4%) | 35Â Â Â (2.3%) | 6Â Â Â Â (0.4%) | 52Â Â Â Â Â (0.0%) |
Main loop | 1345Â Â (4.3%) | 52Â Â Â (3.5%) | 0Â Â Â Â (0.0%) | 2Â Â Â Â Â Â (0.0%) |
Market | 872Â Â Â (2.8%) | 48Â Â Â (3.2%) | 3Â Â Â Â (0.2%) | 204Â Â Â Â (0.2%) |
Maths (Arithmetic) | 2298Â Â (7.3%) | 170Â (11.3%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Maths (Geometry) | 998Â Â Â (3.2%) | 43Â Â Â (2.9%) | 4Â Â Â Â (0.3%) | 192Â Â Â Â (0.2%) |
Missions | 605Â Â Â (1.9%) | 26Â Â Â (1.7%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Moving | 1452Â Â (4.6%) | 48Â Â Â (3.2%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Save and load | 399Â Â Â (1.3%) | 31Â Â Â (2.1%) | 13Â Â Â (0.9%) | 266Â Â Â Â (0.2%) |
Ship hangar | 398Â Â Â (1.3%) | 15Â Â Â (1.0%) | 2Â Â Â Â (0.1%) | 72Â Â Â Â Â (0.1%) |
Sound | 136Â Â Â (0.4%) | 30Â Â Â (2.0%) | 5Â Â Â Â (0.3%) | 216Â Â Â Â (0.2%) |
Stardust | 748Â Â Â (2.4%) | 15Â Â Â (1.0%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Start and end | 491Â Â Â (1.6%) | 24Â Â Â (1.6%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Status | 440Â Â Â (1.4%) | 23Â Â Â (1.5%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Tactics | 791Â Â Â (2.5%) | 28Â Â Â (1.9%) | 0Â Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Text | 2445Â Â (7.8%) | 199Â (13.2%) | 54Â Â Â (3.7%) | 21967Â (19.7%) |
Tube | 58Â Â Â Â (0.2%) | 10Â Â Â (0.7%) | 2Â Â Â Â (0.1%) | 64Â Â Â Â Â (0.1%) |
Universe | 2705Â Â (8.6%) | 105Â Â (7.0%) | 4Â Â Â Â (0.3%) | 106Â Â Â Â (0.1%) |
Utility routines | 168Â Â Â (0.5%) | 35Â Â Â (2.3%) | 6Â Â Â Â (0.4%) | 6Â Â Â Â Â Â (0.0%) |
Workspaces | 0Â Â Â Â Â (0.0%) | 0Â Â Â Â (0.0%) | 876Â (59.8%) | 6292Â Â Â (5.7%) |
Totals | 31346 | 1502 | 1465 | 111356 |
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.