<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 10 Jul 1991 10:39:00 CST
From   : TAGLANCE@ucs.UWPLATT.EDU
Subject: I/O redirection in Small C 2.03

Hello,
 
Charles Meo write [edited]:
>Date: 9 Jul 91 03:18:15 GMT
>From: munnari.oz.au!mel.dit.csiro.au!yarra!cm@uunet.uu.net  (Charles Meo)
>Subject: Re: small c, assemblers, linkers
>Message-ID: <72319@yarra.pyramid.com.au>
>
>For example, while smc211 outputs l80/m80 code, an earlier version (203)
>makes LASM/MLOAD code. However, it writes the assembler output on stdout
>and as far as I can tell there is no I/O redirection in CPM. And no way to
>specify an output file name for the compiler!
 
I have been using version 2.03 of Small C from Simtel20 for some
time now with no difficulties.  Contrary to the above extract,
the compiler does support I/O redirection, in compiling and when
running programs generated by the compiler.  I use the LASM
version of the compiler. Using the link directive, the need to
copy the iolib.asm and call.asm files to the end of the compiler
output is unnecessary.  I also have a doc file for the compiler
that is not part of smc203.ark.
 
Redirection of i/o in Small C works as shown in the K+R book:
 
A>cc80a program.c >program.asm
 
would compile program.c to program.asm.
 
A>program <input.txt >output.txt
 
would run program.com created by Small C and LASM, with input
taken from file input.txt and output sent to file output.txt.
 
If you are interested in discussing Small C, please let me know.
 
Regards,
 
Lance Tagliapietra

<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>