[comp.os.minix] cpp source, where is it?

rcarr@lynx.northeastern.edu (05/16/91)

Does anyone know the location of the source for cpp?  I've upgraded to Minix
386 using Bruces patches but I can't find (or didn't get) the source for cpp
If anyone knows the whereabouts of this code, please let me know.  Thanks.

	Bob Carr
	rcarr@lynx.CCS.northeastern.edu

HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) (05/17/91)

There are two different versions of cpp floating around in this group:

1.) DECUS cpp -- rather slow, does not use much memory

2.) GNU cpp -- full of errors with respect to messing up ints and longs,
    so only usable with a 32-bit compiler.
    Fast, but it needs much memory

DECUS cpp has been posted in this group, also available elsewhere.
GNU cpp is part of GCC.

C.v.W.

evans@syd.dit.CSIRO.AU (Bruce.Evans) (05/17/91)

In article <53777@nigel.ee.udel.edu> rcarr@lynx.northeastern.edu writes:
>Does anyone know the location of the source for cpp?  I've upgraded to Minix
>386 using Bruces patches but I can't find (or didn't get) the source for cpp
>If anyone knows the whereabouts of this code, please let me know.  Thanks.

I use gnu cpp. Source for this is included in the source for gcc. The released
bcc does not quite compile it but this is easily worked around.

A Minix-386 binary for gnu cpp is included in the gcc distribution in the uk
subdirectory on plains.

A couple of Minix bugs have to be fixed to use gnu cpp in pipes. stat()
reports that pipes are regular so input from pipes is handled wrong. write()
fails for sizes of more than 7K to pipes.

There are sources for another cpp (DECUS?) around but this suffers from not
being very standard. gnu cpp is normally ANSI standard but can be made K&R
semi-standard with the '-traditional' flag. It's often necessary to use this
flag - e.g., for cppmake and the kernel assembler files.
-- 
Bruce Evans		evans@syd.dit.csiro.au

wkt@rodos2.cs.adfa.oz.au (Warren Toomey) (06/19/91)

> Does anyone know the location of the source for cpp?  I've upgraded to Minix
> 386 using Bruces patches but I can't find (or didn't get) the source for cpp
> If anyone knows the whereabouts of this code, please let me know.  Thanks.

minnie.cs.adfa.oz.au [131.236.20.90] has, via anon ftp, the following:

  12049) GNU CPP for MINIX, part 1/3 ~ 433 (Guy Helmer)
  12050) GNU CPP for MINIX, part 2a/3 ~ 709 (Guy Helmer)
  12051) GNU CPP for MINIX, part 2b/3 ~ 644 (Guy Helmer)
  12052) GNU CPP for MINIX, part 3/3 ~ 105 (Guy Helmer)

Open 0700GMT to 2300GMT most days.


       Warren Toomey VK1XWT, slow kermiting.
      Deep in the bowels of ADFA Comp Science.
  `The key that I thought opened the door doesn't'

HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) (06/20/91)

The ACK cpp is faulty. It chokes on C-Tex, to whatever stacksize you
chmem' it.

Both DECUS-CPP and GNU cpp CAN handle C-Tex (though DECUS cpp is much slower).

BTW, the cpp built into the ACK C-Frontend seems to be the same. It chokes
at the same place.
You CAN compile C-Tex with the ACK compiler if you preprocess the files with
the DECUS cpp first!

C.v.W.