Why are the two PowerBASIC files different?
I compiled the same DOS menu twice. The EXEs came out the same size with different hashes.
SALINASA.BAS
Compare the compiler reports
PowerBASIC 3.50 compiler reports
PowerBASIC 3.50 compiled the same menu statements twice. The DOS test entered 1, 2, 8, x and q. Both builds displayed TOW, BARGE and SOUNDING, ignored x and finished on q.
| Observation | A | B |
|---|---|---|
| Reported code | 784 bytes | 784 bytes |
| Reported data | 3,024 bytes | 3,024 bytes |
| Reported stack | 2,048 bytes | 4,096 bytes |
| EXE file size | Equal | |
| File hashes | Different | |
Inspect the measured executables
In the DOSBox-X run of the downloadable batch, each executable was 26,966 bytes. The files differed at 39 byte positions.
- SALINASA.EXE · SHA-256
f07e45d97c2d0a79b9a57d76b166aed6aec451a3dcc0997e2222d50e4d5764fa- SALINASB.EXE · SHA-256
ddcc1c79bdaa89eb1c8430a50d52071542fcd280ee29499145a89565512a0034
Which build setting changed?
Run a matching key in both builds before you save an answer.
Reproduce the comparison
Start in a fresh DOS scratch directory with the original SALINASA.BAS and your licensed PBC.EXE on PATH. Run each step in order. Check that each compile succeeds and creates its executable before continuing.
PBC SALINASA.BAS echo $STACK 4096 > SALINASB.BAS type SALINASA.BAS >> SALINASB.BAS PBC SALINASB.BAS
Download the DOS batch for A and B. Put it beside SALINASA.BAS in the fresh scratch directory and run BUILD.BAT. It checks for existing outputs, records the compiler reports in BUILD.LOG, and checks each executable before proceeding.
B prepends one compiler directive to A. The handbook’s DOSBox-X reference run found 39 differing byte positions in the equal-length executables. Compare your own outputs and record the compiler version and build order.