[comp.sources.wanted] How can I get TeX in C?

warren@pluto.UUCP (03/24/87)

Is there somewhere from whence one can ftp the source to TeX
in C?  Or the original and code to compile it on UNIX?  Or
somewhere I can order a tape from?

Or do I have to buy it, and if so, who sells it and how much
does it cost?

I will summarize to the net, no need to post followups.  I've
posted followups to messages like this, would I be posting if
I had heard anything in return, huh?

thanks
-- 
/|/~\~~\     Don't ask me, I just
 |__/__/_/   work on this planet.
 |
/

rokicki@rocky.UUCP (03/26/87)

In article <281@pluto.UUCP>, warren@pluto.UUCP (Warren Burstein) writes:
> Is there somewhere from whence one can ftp the source to TeX
> in C?  Or the original and code to compile it on UNIX?  Or
> somewhere I can order a tape from?
> Or do I have to buy it, and if so, who sells it and how much
> does it cost?

Mail doesn't seem to be working to your site from here, so
please excuse the posting.

There are two versions of TeX in C currently available.

Common TeX is available from Pat Monardo, originally out of
Berkeley.  A posting about a week ago had his phone number
for information about that.  It is free, but various people
report various problems with it, although I believe someone
on the East Coast has gotten it to successfully pass trip.
The note he posted ended with:

>If you would like to receive information about Common TeX
>on the IBM PC, please address all correspondence to 
>	
>		Pat Monardo
>		softsmarts, inc
>		299 California Ave, #205
>		Palo Alto, CA 94306


CTeX is available from n^2 Computer Consultants in Texas.
Talk to Norman Naugle at (409) 845-3104.  It is not free,
but it is not expensive.  It passes trip and has been brought
up on everything from the Amiga, 3B2, IBM RT, Vaxen, Convex,
to a CRAY.  It requires the standard Washington distribution
for fonts, however.  I believe pricing for Universities is
$150 per CPU, or $1500 for a site license.  (It might be $100
per CPU.)  Commercial licenses are double this or less.

-tom

kozam@husc4.UUCP (03/26/87)

	I'm contemplating porting TeX to a small machine (16-bit virtual
addresses - a PDP 11/73, running RT-11 or TSX+).  Has anyone done this
particular port?  If anyone out there has ported TeX to any small machine,
or is familiar with the intermals of TeX running on a small machine, I'd
be very grateful for any information which you could share.

	My current plans are to make the large arrays RAM disk files.
(that pretty much takes care of the large data space).  I don't know
how big the code really is, but I guess it will be larger than a
16-bit virtual address can handle.  I could handle this in several ways:
multiple concurrent processes communicating through channels or shared
memory, one large process with heavily overlaid code, or several processes
that chain to each other and communicate with temporary files.

	I can't justify buying a microvax or other 32-bit machine right
now.  I know that the PDP-11 is an outdated machine, but it's what I've got.
Helpful comments would be appreciated.

					Marc Kozam

ken@rochester.UUCP (03/26/87)

Sizes of TeX and LaTeX...

On our Vaxen running 4.2:
text	data	bss	dec	hex
264192	579584	0	843776	ce000	/usr/staff/bin/tex
264192	579584	0	843776	ce000	/usr/staff/bin/latex

On our Vaxen running 4.3:
text	data	bss	dec	hex
261120	581632	0	842752	cdc00	/usr/staff/bin/tex
261120	581632	0	842752	cdc00	/usr/staff/bin/latex

On our Sun-2's running 2.0:
text	data	bss	dec	hex
217088	610304	0	827392	ca000	/usr/staff/bin/tex
217088	610304	0	827392	ca000	/usr/staff/bin/latex

On our Sun-3's running 3.2:
text	data	bss	dec	hex
221184	589824	0	811008	c6000	/usr/staff/bin/tex
221184	589824	0	811008	c6000	/usr/staff/bin/latex

TeX has been made to run on 8088 machines (PC's).  You should start
from the C version. Good luck.

	Ken

ken@rochester.UUCP (03/27/87)

Let me just add my experience running Common TeX. It is about 20%
faster and only 10% smaller. I guess on a program of that size you
don't get to save much on memory. The poor speedup might have been
because the C was a literal translation from Pascal. One could rewrite
the hot spots to use C constructs but with the risk of breaking the
algorithm.

The first version of C-TeX is believed to still have bugs, so I didn't
think it was worth installing. I'd be interesting in hearing from
anybody who has fixed the bugs.

However, TeX can now be ported to machines without a decent Pascal
compiler but with a good C compiler. And you don't have to put the
whole source in one file.

	Ken