RSX-11: How to compile BASIC with multiple files

95 views
Skip to first unread message

Jochen Lillich

unread,
Apr 25, 2020, 2:05:55 PM4/25/20
to [PiDP-11]
Hi,

I can't find any documentation how I'm supposed to call `BP2` and `TKB` to compile an image from multiple source files, for example one file "main" for the main program, one named "sub" with a `SUB` program. `BP2/BUILD main,sub` seems to compile them independently, each resulting in a separate CMD file for TKB. Any hints appreciated!

Best regards,  
Jochen

Jochen Lillich

unread,
Apr 25, 2020, 3:12:49 PM4/25/20
to [PiDP-11]
Progress: I've found some older documentation that explains that interactive BP2 lets me "BUILD main,sub" to create a working MAIN.ODL file. What would be the equivalent MCR invocation of BP2, though?

Mark Matlock

unread,
Apr 25, 2020, 3:27:51 PM4/25/20
to [PiDP-11]


On Saturday, April 25, 2020 at 2:12:49 PM UTC-5, Jochen Lillich wrote:
Progress: I've found some older documentation that explains that interactive BP2 lets me "BUILD main,sub" to create a working MAIN.ODL file. What would be the equivalent MCR invocation of BP2, though?

Jochen,
    Take a look at page 11-19 in the BasicPlus2 V2.7 User's Guide for background.

     Inside BP2 COMPILE the MAIN.B2S then load the SUBPROGRAM.B2S and COMPILE it.

     The BUILD command is inside the BP2 compiler. e.g. BUILD MAIN,SUBPROGRAM

     that BUILD command does not TKB but it makes a MAIN.CMD and a MAIN.ODL

      at that point you exit BP2 and TKB @MAIL.CMD

      once TKB builds the MAIN.TSK you can run it. The TKB and RUN are done at MCR>

Best,
Mark

Jochen Lillich

unread,
Apr 25, 2020, 3:52:37 PM4/25/20
to [PiDP-11]
I'm getting the feeling that I'm mistaken in assuming that there's an MCR equivalent to the internal "BUILD main,sub" command in the first place...

Jochen Lillich

unread,
Apr 25, 2020, 5:09:14 PM4/25/20
to [PiDP-11]
Hi Mark,

Thanks for the help! That's exactly the book I've found. I'm probably still too unix-y in my thinking for RSX, and that led me to believe that there's also a way to run the build phase from _outside_ the interactive BASIC. While the BP2 command actually does have a /BUILD switch, that didn't get me anywhere.

So there isn't a way to edit code in EDT and then run _only MCR commands_ to build the image?

Cheers,
 Jochen

Johnny Billquist

unread,
Apr 25, 2020, 5:10:06 PM4/25/20
to Jochen Lillich, [PiDP-11]
Hi.
In general, I tend to just add the object files into the .ODL file.

But if you want the build command to already generate all correctly, I
think you need to get into the BASIC environment, and issue the build
command instead of using the /BUILD switch.

The BUILD command takes multiple files as an argument, which I suspect
should do what you want. You can also get into the BASIC environment,
load your files with the LOAD command, and try doing a BUILD after that.

Johnny

--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: b...@softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol

Nick M

unread,
Dec 29, 2025, 10:28:43 PM (13 days ago) 12/29/25
to [PiDP-11]
BRILLIANT! Almost 6 years later, this got me unstuck (after a day of trying endless TKB options). The "BUILD" command inside BASIC was the missing key for me.

Thanks Mark!
 -Nick
Reply all
Reply to author
Forward
0 new messages