Page 1 of 1

Compiling a stand alone program using BASCOM 5.3

PostPosted: March 22nd, 2015, 1:50 pm
by gmh
Hi all,

I've read the supplied BASCOM 5.3 documentation, and searched the web but can't seem to get a file to compile as a stand alone program. Whenever I use the /O switch my programs still say BRUN.COM is missing.

Can someone please give me a heads up in regards to which switches to throw at L80.COM?

Thanks heaps!

Re: Compiling a stand alone program using BASCOM 5.3

PostPosted: March 22nd, 2015, 4:36 pm
by toml_12953
You do have BRUN.COM on the same disk as the compiled COM file, right? It has to be on the same disk.

Re: Compiling a stand alone program using BASCOM 5.3

PostPosted: March 22nd, 2015, 4:45 pm
by gmh
Hi,

Thanks for your reply but I'm trying to construct a standalone COM file that doesn't require BRUN.COM. According to the supplied test files I need to use the /O flag, but as mentioned originally I can't get it to actually work as expected.

Code: Select all
/O        (Newer versions only).  Tells the compiler to  construct a stand-
          alone program instead of one  requiring presence of the  BRUN.COM
          runtime module.  This generates much bigger programs because  all
          of the runtime routines must be included.

Thanks

Re: Compiling a stand alone program using BASCOM 5.3

PostPosted: March 22nd, 2015, 5:03 pm
by AltairClone
Given a basic program saved in ASCII called SAMPLE.BAS:

Code: Select all
A>BASCOM SAMPLE=SAMPLE/O

00000 Fatal Error(s)
25542 Bytes Free

A>L80 SAMPLE,SAMPLE/N/E

Link-80  3.44  09-Dec-81  Copyright (c) 1981 Microsoft

Data    0103    2537    < 9268>

34554 Bytes Free
[0118   2537       37]

A>SAMPLE
Sample Compiled BASIC Program
This is line 1
This is line 2
This is line 3
This is line 4
This is line 5
This is line 6
This is line 7
This is line 8
This is line 9
This is line 10

Re: Compiling a stand alone program using BASCOM 5.3

PostPosted: March 22nd, 2015, 7:38 pm
by gmh
Thanks heaps Mike, I was using the flag on L80.COM.