[Coco] Question re: C Compiler sources
Steven Hirsch
snhirsch at gmail.com
Sun Dec 28 14:14:04 EST 2008
On Sun, 28 Dec 2008, Boisy Pitre wrote:
> Steve,
>
> By the looks of it, L01a6 ends is bogus. Ends simply marks the end of a
> segment, and I would eliminate the label on that line.
>
> Sounds like you're making progress.
Ok, I'm past that and have built the preprocessor, compiler and optimizer.
I created a "/dd" directory off the root of my system and placed the
headers from a real compiler distribution in /dd/defs and the clib in
/dd/lib.
Next, I created a simple "Hello, World" one-liner and tried to figure out
how to compile it.
This seems to attempt preprocessing:
./coprep hello.c > hello1.c
But the preprocesor is making a hash of the output. Looks like buffered
and unbuffered I/O are getting used interchangeably without proper
flushing. More later...
Just curious, though. Is this actually supposed to work? There is some
commentary from the person who packaged it that would suggest it does, but
I cannot believe this particular tarball represents a working compiler.
I've hit too many fundamental issues to accept that.
Steve
--
More information about the Coco
mailing list