Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!mimir!hugin!augean!sirius!chook.ua.oz From: cagney@chook.ua.oz (Andrew Cagney - aka Noid,285,5585,3362395) Newsgroups: comp.os.minix Subject: Suggested change to ACC compiler Message-ID: <531@sirius.ua.oz.au> Date: 11 Sep 89 07:08:18 GMT References: <3196@ast.cs.vu.nl> Sender: news@sirius.ua.oz.au Lines: 22 From article <3196@ast.cs.vu.nl>, by ast@cs.vu.nl (Andy Tanenbaum): > On a related note, we have converte the ACK compiler to be ANSI standard > and it is too big to fit in 64K + 64K. Such is life. What about just changing the cpp section to comply with ANSI C input while producing old K&R C output? The ACK compiler could then be extended to handle a few extra features (eg void* & const ...) The hacky changes to the language are mostly in the #defines and how they behave. Modifying just cpp should cover this. I say hacky because people have a habit of using old K&R features with defines that are not formally specified eg #SYMB instead of "SYMB" A ## B instead of A/**/B (Read an ansi C manual) Umm this should not be taken as an offer to do this just a suggestion for a 'cheap' solution. Andrew Cagney (noid) cagney@cs.ua.oz.au