home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / faqs / comp / answers / compilers / faq < prev   
Encoding:
Internet Message Format  |  1997-10-02  |  32.4 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!cam-news-feed5.bbnplanet.com!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!news-sea-19.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!205.238.207.65!iecc.com!iecc.com!not-for-mail
  2. From: compilers-request@iecc.com (John R. Levine)
  3. Newsgroups: comp.compilers,news.answers,comp.answers
  4. Subject: comp.compilers monthly message and Frequently Asked Questions
  5. Supersedes: <monthly-Sep-97@comp.compilers>
  6. Followup-To: poster
  7. Date: 1 Oct 1997 07:00:00 -0400
  8. Organization: Compilers Central
  9. Lines: 662
  10. Sender: johnl@iecc.com
  11. Approved: compilers@iecc.com
  12. Expires: 1 Nov 97 23:59:00 GMT
  13. Message-ID: <monthly-Oct-97@comp.compilers>
  14. NNTP-Posting-Host: ivan.iecc.com
  15. Keywords: administrivia
  16. Xref: senator-bedfellow.mit.edu comp.compilers:13667 news.answers:113552 comp.answers:28309
  17.  
  18. Archive-name: compilers/faq
  19. Last-modified: 30 Apr 97
  20.  
  21. This is the comp.compilers monthly message.  Changes since last month are
  22. indicated by the usual marks in the right margin.
  23.  
  24. Contents:
  25.  
  26. -- What is comp.compilers?
  27. -- How do I receive it?
  28. -- How do I submit a message?
  29. -- What happens to submitted messages?
  30. -- What message formats are appropriate?
  31. -- Why wasn't my message posted?
  32. -- How do I respond to the author of a message?
  33. -- How do I contact the moderator?
  34. -- Are back issues available?
  35.  
  36. -- Some Frequently Asked Questions:
  37.  
  38. * Where can I get a C or C++ grammar in yacc?
  39. * Where can I get the Gnu C compiler?
  40. * Are there other free C compilers?
  41. * Where can I get a free compiler for MS Windows?
  42. * Where can I get a Fortran grammar in yacc or a Fortran compiler?
  43. * Where can I get Modula-2, Pascal, Ada, or SQL grammars in yacc?
  44. * Where can I get a Cobol grammar in yacc?
  45. * Where can I get a Basic grammar in yacc?
  46. * Where can I get a QBasic compiler?
  47. * Where can I get a PL/I or PL/M grammar?
  48. * Are there free versions of yacc and lex ?
  49. * Are there versions of yacc and lex for MS-DOS?
  50. * Are there C++ versions of yacc and lex?
  51. * What other compilers and tools are freely available?
  52. * How can I get started with yacc and lex and compiler writing in general?
  53. * Where can I FTP the sources to the programs in Holub's "Compiler
  54.   Design in C" or Mak's "Writing Compilers and Interpreters" ?
  55. * Where can I learn about garbage collection ?
  56.  
  57. -- What is comp.compilers?
  58.  
  59. It is a moderated usenet news group addressing the topics of compilers in
  60. particular and programming language design and implementation in general.
  61. It started in 1986 as a moderated mailing list, but interest quickly grew to
  62. the point where it was promoted to a news group.  Recent topics have
  63. included optimization techniques, language design issues, announcements of
  64. new compiler tools, and book reviews.
  65.  
  66. Messages come from a wide variety of people ranging from undergraduate
  67. students to well-known experts in industry and academia.  Authors live all
  68. over the world -- there are regular messages from the U.S, Canada, Europe,
  69. Australia, and Japan, with occasional ones from as far away as Malaysia.
  70. I cannot tell how large the readership is, since the anarchic nature of
  71. usenet makes it impossible to tell who reads it, but a reasonable guess is
  72. that the total is over 100,000, which would make it by far the most widely
  73. read medium on the topic in the world.
  74.  
  75. Unless there is specific language to the contrary, each message represents
  76. only the personal opinion of its author.  I claim no compilation copyright on
  77. comp.compilers.  As far as I am concerned, anyone can reproduce any message
  78. for any purpose.  Individual authors may retain rights to their messages,
  79. although I will not knowingly post anything that does not permit unlimited
  80. distribution in any form.  If you find comp.compilers useful in writing a
  81. book, producing a product, etc., I would appreciate an acknowledgement of
  82. usenet and comp.compilers.
  83.  
  84. -- How do I receive it?
  85.  
  86. The easiest way is to read comp.compilers on a system that gets usenet news.
  87.  
  88. If you don't have access to usenet news, it's also available via E-mail via
  89. a LISTSERV forwarder at the American University.  To subscribe a person
  90. should send e-mail to listserv@american.edu with one line in the mail
  91. message (not in the subject!)  That line should read:
  92.  
  93.                         SUBSCRIBE COMPIL-L full_name
  94. for example:
  95.                         SUBSCRIBE COMPIL-L Ima Hacker
  96.  
  97. To get off the list the subscriber should send e-mail to the same address
  98. with the message:       SIGNOFF COMPIL-L
  99.  
  100. If you have problems getting on or off the list, please contact me.  In
  101. particular, if you want to use an address other than your own personal mail
  102. address, you have to ask me to set it up.  If I receive bounce messages for
  103. an address on the mailing list for two days in a row, I delete it.  If this
  104. happens to you and your address subsequently becomes reachable again, you
  105. can resubscribe.
  106.  
  107. -- How do I submit a message?
  108.  
  109. Mail it to compilers@iecc.com.  I review messages nearly every day, usually
  110. including weekends, and most messages are posted to the net within a day after
  111. I receive them.  Occasionally when I go out of town there may be up to a
  112. week's delay, though I try to send out a message when that will happen.
  113.  
  114. Most net news systems will automatically turn posted messages into mail to
  115. compilers, but some, particularly systems running notes, don't do that
  116. correctly.  As a result, I sometimes receive hundreds of copies of a
  117. message, all mangled slightly differently.  Please mail your contributions
  118. unless you're sure your posting software works correctly.
  119.  
  120. When you send a message to compilers, I understand that to mean that you
  121. want me to post it to usenet, which means it will be sent to tens of
  122. thousands of potential readers at thousands of computers all around the
  123. world.  It may also appear in a printed comp.compilers annual and other
  124. books, in printed journals, in on-line and off-line archives, CD-ROMs, and
  125. anywhere else that some reader decides to use it.
  126.  
  127. If you don't want me to post something, send it instead to compilers-request.
  128. (See below.)
  129.  
  130. -- What happens to submitted messages?
  131.  
  132. Barring mail problems, they arrive in a special mailbox here at iecc.  If
  133. they're appropriate to post, I then edit them a little, remove cute
  134. signatures, and then post them to usenet.  If I think a message needs more
  135. editing than that but is otherwise worth posting, I return it to the author
  136. for rewriting.  Other messages are discarded (see below.)
  137.  
  138. If I see that the automatically generated confirmation message bounced, I
  139. discard the message.  If you want your messages to be posted, please be
  140. sure the From: or Reply-To: line contains your correct e-mail address.
  141.  
  142. -- What message formats are appropriate?
  143.  
  144. Plain old ASCII.  No MIME, uuencoded, zipped, LaTeX, HTML, NeXTmail, RTF, GIF,
  145. gzip, MSN Exchange, or anything else, just ASCII, because a substantial
  146. fraction of the readership still can't handle anything else.  And keep line
  147. lengths to between 70 and 80 characters, and don't justify lines with extra
  148. white space nor indent the whole message with white space.  Messages received
  149. entirely in lower case are subject to gratuitous recapitalization.  (Your
  150. moderator has strong aesthetic opinions.)
  151.  
  152. If you want to make something non-ASCII available to the readership, put it
  153. on an FTP or WWW server and send in a descriptive note with the URL.
  154. Material of general interest can go on the archive server here.  Send me a
  155. message at compilers-request@iecc.com if you have something for the
  156. archive.
  157.  
  158. -- What topics are and aren't appropriate?
  159.  
  160. Any message discussing aspects of compiler design and implementation is
  161. appropriate.  Language design is usually OK as well insofar as it affects
  162. compiler design, until it drifts off into theological issues like where the
  163. semicolon goes.
  164.  
  165. Questions about particular compilers, programming languages, and systems
  166. should go to newsgroups about the language or system.
  167.  
  168. "For sale" messages should go to one of the misc.forsale or regional
  169. forsale groups.
  170.  
  171. I post one announcement per conference, for any conference with a topic
  172. relevant to compilers.  I usually post student offers to share a room at a
  173. conference, and should probably digest them as well.
  174.  
  175. Postings announcing commercial products are welcome so long as there
  176. is substantially more technical content than hype.
  177.  
  178. ``Help wanted'' and ``Position Available'' messages are collected each week
  179. and posted in a digest every Sunday.  Resumes are discarded, since most of
  180. them come from robots mechanically sending them out in response to every
  181. message in misc.jobs.offered.  Jobs remaining open may be re-posted once a
  182. month.
  183.  
  184. For technical reasons, I can't cross-post messages to other moderated groups,
  185. except one or two like comp.parallel with whom I have an informal agreement
  186. to allow cross-posts.
  187.  
  188. -- Why wasn't my message posted?
  189.  
  190. The main reasons I don't post a message are that it appears more appropriate
  191. for another group, the message is too garbled to fix, it contains too much
  192. quoted material relative to the amount of new material, or I don't understand
  193. it.  Another possibility is that a message doesn't have a valid return e-mail
  194. address.
  195.  
  196. When you respond to a previous article, you MUST edit down the quoted material
  197. to the minimum needed to remind readers about the topic.  In the past I
  198. usually did such editing myself, but with the increasing number of messages, I
  199. just don't have time any more and discard such messages.  If you can't take
  200. the time to edit your message, neither can I.  The mail receipt robot makes a
  201. guess about the amount of quoted material in each message and sends a warning
  202. in response if a message appears to have more quoted than new stuff.  Unless
  203. it guessed wrong, please edit and resumbit your message if you want it to
  204. appear.
  205.  
  206. I discard messages that say "reply to me because I don't read this group",
  207. and forward spams back to the appropriate postmaster.  Messages from
  208. anonymous or anonymized addresses are not acceptable, although I suppose I
  209. could be persuaded to post a message with the sender's identity removed
  210. given a persuasive enough reason.
  211.  
  212. If a message asks a simple question I sometimes answer it myself rather than
  213. posting it.  If you ask a question answered in the FAQ, discussed to death in
  214. the past, or appropriate for a different group, you'll get a form response.
  215.  
  216. If you send in a message and don't either see it posted or receive an
  217. acknowledgement from the robot, it probably got lost in the mail and you
  218. should contact me, preferably via a different mail route.
  219.  
  220. -- How do I respond to the author of a message?
  221.  
  222. I try to be sure that every message contains valid From: and Reply-To:
  223. headers.  The automatic "reply" commands in most news readers let you send
  224. mail to the author.  If you're replying to a message in a digest, be sure
  225. to respond to the author of the particular message, not to the pseudo-author
  226. of the digest.
  227.  
  228. Some obsolete news readers attempt to reply using the Path: header, but for
  229. technical reasons the Path: header in a moderated message cannot point to the
  230. actual author.  In fact, the Path: header in a compilers message is
  231. deliberately a bad mail address, so if you have such a news reader you'll
  232. have to edit the addresses in responses yourself and, I hope, encourage your
  233. system manager to update your news and mail software.
  234.  
  235. Sometimes mail to an author bounces, either because a gateway isn't working
  236. or because the return address is unregistered or otherwise bad.  Please don't
  237. ask me to forward it, since my machine is no better connected than anyone
  238. else's.  (It's just another node on the Internet.)  If you send me a message
  239. obviously intended for the author of an item, I will discard it on the theory
  240. that if it wasn't important enough for you to send it to the right place, it
  241. isn't important enough for me, either.
  242.  
  243. -- How do I contact the moderator?
  244.  
  245. Send me mail at compilers-request@iecc.com.  I treat messages to
  246. compilers-request as private messages to me unless they state that they are
  247. for publication.
  248.  
  249. -- Are back issues available?
  250.  
  251. I have complete archives going back to the original mailing list in 1986.
  252. The archives now fill over 36 megabytes, and are growing at over 700K per
  253. month.  People with ftp access can get them from iecc.com in directory
  254. pub/articles.  The archives contain a gzipped Unix mailbox format file for
  255. each month, with names like 91-08.gz.  Directory pub/index contains index
  256. files, one for each year.  You can retrieve messages by full text search or
  257. by message number at the compilers web site at
  258. http://www.iecc.com/compilers/.
  259.  
  260. There is now a mail server at compilers-server@iecc.com that can mail you
  261. indexes, messages, and the files mentioned below.  Send it a message
  262. containing "help" to get started.
  263.  
  264. I have also published a printed edition of the 1990 messages grouped by
  265. thread and topic, and with some indexes, and may publish subsequent
  266. editions.  (If you'd be intereted in editing books for later years, let me
  267. know.)  You can buy copies of the 1990 book directly from me; send email
  268. to compilers-request@iecc.com for details.  (Yes, we take plastic.)
  269.  
  270.  
  271. -- Some Frequently Asked Questions:
  272.  
  273. NOTE: Many issues are discussed occasionally on comp.compilers, but not
  274. frequently enought to make the FAQ list.  If you have a question but the
  275. answer isn't in the FAQ, you may well be able to get good background by
  276. reading the appropriate articles in the archive.  Please at least visit
  277. the archive at http://iecc.com/compilers and do a little searching.
  278.  
  279. The various files that I mention below that I have are in the compilers
  280. FTP archive at iecc.com, and are also available from the mail server mentioned
  281. above.  If you can FTP them, please do so rather than using the mail
  282. server, since the mail bandwith is limited.
  283.  
  284. * Where can I get a C or C++ grammar in yacc?
  285.  
  286. Jim Roskind's well-known C and C++ grammars are in the FTP archive, as is
  287. a C grammar written by Jeff Lee.  Dave Jones posted a parser as message
  288. 91-09-030.  Another C grammar was posted to comp.sources.misc in June
  289. 1990, v13 i52, archive name ansi-c_su.  GCC and G++ are based on yacc
  290. grammars, see below.
  291.  
  292. Also see ctree, which parses C code into parse trees and makes symbol
  293. tables, described in message 95-07-114.  
  294. http://www.cs.wisc.edu/~flisakow/, http://www.kagi.com/flisakow/,
  295. ftp://ftp.kagi.com:/flisakow/ctree_04.tar.gz, or
  296. ftp://ftp.kagi.com:/flisakow/ctree_04.zip
  297.  
  298. * Where can I get the Gnu C compiler?
  299.  
  300. GCC is a high-quality free C and C++ compiler.  (Free is not the same as
  301. public domain, see the GCC distribution for details.)  It is available in
  302. source from prep.ai.mit.edu.  You need an existing C compiler and
  303. libraries to bootstrap it.
  304.  
  305. * Are there other free C compilers?
  306.  
  307. lcc is the retargetable compiler for ANSI C described in `A Retargetable C
  308. Compiler: Design and Implementation' (Benjamin/Cummings, 1995, ISBN
  309. 0-8053-1670-1). lcc is in production use at Princeton University and AT&T
  310. Bell Laboratories.  The current version of lcc generates code for the
  311. SPARC, MIPS R3000 and 386 under DOS (no libraries for DOS are available
  312. yet).  The code generator generator is available too as a icon program, and
  313. a C version is available as of version 3.5.  There are mailing lists
  314. lcc{,-bugs}@cs.princeton.edu, managed by majordomo@cs.princeton.edu.  The
  315. object code is not great, but the compiler is ANSI compatible and is small
  316. and fast.  Lcc uses a hard-coded C parser because it's faster than yacc,
  317. and now includes a preprocessor.  Lcc is available, along with docs and a
  318. sample chapter of the bookhttp://www.CS.Princeton.EDU/software/lcc/
  319.  
  320. Thanks to Horst von Brand <vonbrand@inf.utfsm.cl> and
  321. Tom Harwood <harwood@bedford.progress.COM> for this info.
  322.  
  323. * Where can I get a free compiler for MS Windows?
  324.  
  325. A development system called "djgpp" by DJ Delorie <dj@delorie.com> is based
  326. on gcc and other GNU programs, and runs on 386 or higher PCs running
  327. MS-DOS.  DJGPP also has Pascal, FORTRAN, Ada, Bison and Flex for MS-DOS.
  328. It also has many other GNU tools that programmers often need, like emacs,
  329. make, fileutils, shellutils, textutils, sed, awk, perl, etc.  This is all
  330. available from ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/ or
  331. http://www.delorie.com/djgpp/
  332.  
  333. Another DOS version of GCC called EMX is at ftp.informatik.tu-muenchen.de
  334. [131.159.0.198] in /pub/comp/os/os2/devtools/emx+gcc.
  335.  
  336. lcc-win32, a free C compiler system for windows 95/NT can be downloaded
  337. from http://www.remcomp.com/lcc-win32
  338.  
  339. * Where can I get a Fortran grammar in yacc or a Fortran compiler?
  340.  
  341. I have a small subset parser in the archive at iecc.com.  The F2C
  342. Fortran to C translator is a respectable Fortran system (so long as
  343. you have a C compiler to compile its output and its libraries) and
  344. contains a full F77 parser and is available in source form via FTP
  345. from netlib.bell-labs.com and by mail from netlib@research.bell-labs.com.
  346.  
  347. * Where can I get Modula-2, Pascal, Ada, or SQL grammars in yacc?
  348.  
  349. I have one each of those, too, in the archive at iecc.com, though I
  350. haven't tried to use any of them.
  351.  
  352. According to the comp.lang.ada FAQ, a yacc grammar for Ada 95 is available:
  353.  
  354. ftp://sw-eng.falls-church.va.us/public/AdaIC/standards/95lrm_rat/grammar9x.y
  355.  
  356. and a lex grammar for Ada 95 is available:
  357.  
  358. ftp://sw-eng.falls-church.va.us/public/AdaIC/standards/95lrm_rat/lexer9x.l
  359.  
  360. There's an Ada front end called GNAT for GCC, available at
  361. ftp://cs.nyu.edu/pub/gnat/.
  362.  
  363. * Where can I get a Cobol grammar in yacc?
  364.  
  365. Nowhere for free, as far as I can tell.  This question is asked every few
  366. months and there has never, ever, been any positive response. Perhaps some
  367. of the interested people could get together and write one.  The commercial
  368. PCYACC from Abraxas (see below) comes with a bunch of sample grammars
  369. including one for Cobol-85.
  370.  
  371. Also see the Cobol FAQ posted monthly to comp.lang.misc and comp.lang.cobol.
  372.  
  373. * Where can I get a Basic grammar in yacc?
  374.  
  375. Take a look at ftp://ftp.uu.net:/usenet/comp.sources.unix/volume2/basic/ which
  376. contains a Basic interpreter with yacc parser.
  377.  
  378. * Where can I get a QBasic compiler?
  379.  
  380. You buy it from Microsoft.  A shareware compiler ASIC is available
  381. from simtel mirrors in /msdos/basic/asic???.zip, such as ftp.coast.net
  382. in /SimTel/msdos/basic/asic???.zip.  It handles a large subset of Qbasic.
  383.  
  384. There's a Qbasic mailing list; send "info qbasic" to
  385. listserv@midnight.postino.com for details.
  386.  
  387. * Where can I get a PL/I or PL/M grammar?
  388.  
  389. There's a PL/I source code formatting packat at vm1.velocity-software.com 
  390. in PLIFORM.ZIP.  It's all written in PL/I.
  391.  
  392. There's a PL/M in the archives at iecc.com, called plm.shar.  Also see
  393. message 94-03-062 for a report on a PL/M to C translator.
  394.  
  395. * Are there free versions of yacc and lex ?
  396.  
  397. Vern Paxton's flex is a superior reimplementation of lex.  It is available
  398. from the same places as Gnu sources, but is not subject to the Gnu
  399. copyleft.  Berkeley Yacc is a quite compatible PD version of yacc by Bob
  400. Corbett, available on ftp.cs.berkeley.edu, in ~ftp/ucb/4bsd/byacc.tar.Z. Gnu
  401. Bison is derived from an earlier version of Corbett's work and is also
  402. fairly compatible with yacc.  A byacc extension that displays graphically
  403. the progress of a parse can be found in Jim Roskind's C++ grammar in the
  404. FTP compilers archive.  (The files are too big for the mail archive,
  405. sorry.)
  406.  
  407. * Are there versions of yacc and lex for MS-DOS?
  408.  
  409. There are several of them.  Commercial versions are MKS lex&yacc from MKS
  410. in Waterloo Ont., +1 519 884 2251, http://www.mks.com or inquiry@mks.com,
  411. and PCYACC from Abraxas Software in Portland OR, +1 503 244 5253.  Both
  412. include both yacc and lex along with a lot of sample code.
  413.  
  414. The standard flex source compiles under the usual DOS compilers, although
  415. you may want to make some of the buffers smaller.  A DOS version of Bison
  416. is on wuarchive.wustl.edu [128.252.135.4] and other servers under
  417. SimTel/msdos/pgmutil/bison111.zip. See message 92-07-012 for more info.
  418.  
  419. * Are there C++ versions of yacc and lex?
  420.  
  421. flexx++ and bison++ can be found at:
  422.  
  423. ftp://ftp.th-darmstadt.de/pub/programming/languages/C++/tools/flex++bison++/
  424.  
  425. * What other compilers and tools are freely available?
  426.  
  427. There is a five-part FAQ posting in comp.compilers and other groups listing
  428. compiler tools freely available in source form, maintained by Steve
  429. Robenalt <free-compilers@idiom.berkeley.ca.us>.  It is posted monthly,
  430. usually right after this message.  There's a nice webified version at          |
  431. http://www.idiom.com/free-compilers, and you can retrieve the text             |
  432. version from ftp://ftp.idiom.com/pub/compilers-list/free-compilers.  The       |
  433. list is not updated very often; if you think it should be updated more         |
  434. frequently, feel free to drop them a note and offer to help with the work.     |
  435.  
  436. Also visit the web page http://www.first.gmd.de/cogent/catalog/ which includes
  437. pointers to a variety of compiler tools and resources.
  438.  
  439. * How can I get started with yacc and lex and compiler writing in general?
  440.  
  441. There are short on-line tutorials for lex and yacc at
  442. http://www.ee.ic.ac.uk/course/advanced/intro.html.
  443.  
  444. Or read any of the many books on the topic.  Here are a few of them.
  445. Also see message 93-01-155 which reviews many compiler textbooks.
  446.  
  447. Aho, Sethi, and Ullman, "Compilers: Principles, Techniques, and Tools,"
  448. Addison Wesley, 1986, ISBN 0-201-10088-6, the "dragon book".
  449.  
  450. Describes clearly and completely lexing and parsing techniques including
  451. the ones in yacc and lex.  The authors work or have worked at Bell Labs
  452. with Steve Johnson and Mike Lesk, the authors of Yacc and Lex.
  453.  
  454. Alan Holub, "Compiler Design in C," Prentice-Hall, 1990, ISBN
  455. 0-13-155045-4.
  456.  
  457. A large book containing the complete source code to a reimplementation of
  458. yacc and lex and a C compiler.  Quite well written, too, though it has a
  459. lot of errors.  The fourth printing is supposed to correct most of them.
  460. An errata list is in message 90-06-081, and a newer on in PDF (yuck) on        |
  461. his web site at <http://www.holub.com>.                                        |
  462.  
  463. John R. Levine (that's me), Tony Mason, and Doug Brown, ``Lex & Yacc,''
  464. 2nd Edition, O'Reilly and Associates, 1992, ISBN 1-56592-000-7, $29.95.
  465.  
  466. A concise introduction with completely worked out examples and an
  467. extensive reference section.  The new edition is completely revised from
  468. the earlier 1990 edition.  Source code can be FTP'ed from ftp.ora.com.
  469.  
  470. Donnely and Stallman, "The Bison Manual," part of the on-line distrubution
  471. of the FSF's Bison, a reimplementation of yacc.  As with everything else from
  472. the FSF, full source code is included.
  473.  
  474. Axel T. Schreiner and H. George Friedman, Jr., "Introduction to Compiler
  475. Construction with UNIX," Prentice-Hall, 1985.
  476.  
  477. Oriented to tutorial work.  Good for beginners.  Develops a small
  478. subset-of-C compiler through the book.  (Recommended by Eric Hughes
  479. <hughes@ocf.Berkeley.EDU>.)  Richard Hash <rgh@shell.com> comments that
  480. the book has many typographical errors, and readers should be suspicious
  481. of the examples until they actually try them.  Richard Y. Kim
  482. <richard@ear.mit.edu> reports that sources are available for FTP as
  483. a.cs.uiuc.edu:pub/friedman/tar.
  484.  
  485. Bennett, J.P. "Introduction to Compiling Techniques - A First Course Using
  486. Ansi C, Lex and Yacc," McGraw Hill Book Co, 1990, ISBN 0-07-707215-4.
  487.  
  488. It's intended for a first course in modern compiler techniques, is very
  489. clearly written, and has a full chapter on YACC.  I found it to be a good
  490. introductory text before getting into the 'Dragon book'.  (Recommended by
  491. John Merlin <J.H.Merlin@ecs.southampton.ac.uk>.)  Source code is available
  492. at ftp.bath.ac.uk.
  493.  
  494. Charles N. Fischer & Richard J. LeBlanc, "Crafting A Compiler", Benjamin
  495. Cummings Publishing, Menlo Park, CA, 1988, ISBN 0-8053-3201-4.  There's
  496. also a revised version as of 1990 or 1991 titled "Crafting A Compiler in
  497. C", with all examples in C (the original used ADA/CS).  The tools are at
  498. http://www.cs.wisc.edu/~fischer/ftp/tools/
  499.  
  500. Erich Nahum <nahum@cs.umass.edu> writes: A key compiler reference.  We
  501. used the original to great effect in Eliot Moss' graduate compiler
  502. construction class here at UMass.  My feeling is that Fischer & LeBlanc is
  503. a good tutorial, and one should use Aho, Sethi, & Ullman as a reference.
  504.  
  505. Des Watson, "High-Level Languages and Their Compilers," International
  506. Computer Science Series, Addison-Wesley Publishing Company, Wokingham
  507. England, 1989.
  508.  
  509. Adrian Howard <adrianh@cogs.sussex.ac.uk> writes: This is the kindest,
  510. most readable introduction to compilers at the graduate level I have ever
  511. read - an excellent example of what textbooks should all be like.
  512.  
  513. W.M. Waite and G. Goos, "Compiler Construction," Springer-Verlag, New
  514. York, 1984.
  515.  
  516. Dick Grune <dick@cs.vu.nl> writes: A theoretical approach to compiler
  517. construction. Refreshing in that it gives a completely new view of many
  518. subjects. Heavy reading, high information density.
  519.  
  520. J.P. Tremblay and P.G. Sorenson, "The Theory and Practice of Compiler
  521. Writing," McGraw-Hill, 1985.
  522.  
  523. Dick Grune <dick@cs.vu.nl> writes: Extensive and detailed. Heavy reading.
  524. To be consulted when other sources fail.
  525.  
  526. James E. Hendrix, "The Small-C Compiler", 2nd ed., M&T Books, ISBN
  527. 0-934375-88-7 <Book Alone>, 1-55851-007-9 <MS-DOS Disk>, 0-934375-97-6
  528. <Book and Disk>.
  529.  
  530. William Jhun <ec_ind03@oswego.edu> writes: It explaines the C-language is
  531. thorough....and explains every single aspect of the compiler. The book
  532. compares source code to p-code to assembly. It goes over a nice set of
  533. optimization routines, explains the parser, the back end, and even
  534. includes source code, which the compiler on the disk can actually compile
  535. itself. It's an extremely interesting book, check it out. (Out of print.)
  536.  
  537. Ronald Mak, "Writing Compilers and Interpreters: An Applied Approach",
  538. 1991, John Wiley and Sons, Inc. ISBN 0-471-50968-X.
  539.  
  540. Andrew Tucker <a_tucker@paul.spu.edu> writes: This 512-page book presents
  541. a strictly hands on approach, developing a Pascal interpreter and
  542. interactive debugger, then completing with a compiler which emits 8086
  543. assembly.  All source code is provided in print and on disk.  This book is
  544. very low to non-existent in theoretical content, but is very practical and
  545. readable for an introduction.  Taylor Hutt <thutt@access.digex.net>
  546. comments that the book is a piece of junk.  The code that is contained in
  547. the book is full of bugs, and the code that it generates will not work.
  548.  
  549. "The Art of Compiler Design", Thomas Pittman & James Peters, Prentice-Hall
  550. International, 1992, Englewood Cliffs, NJ 07632, 0-13-046160-1
  551.  
  552. Franklin L. Vermeulen <vfrank@vnet3.vub.ac.be> writes: This is a very
  553. nicely written and straightforward text on compiler construction.  There
  554. is a certain (unavoidable?) amount of overlap with a course on automata
  555. (as in Aho, Sethi and Ullman).  It is based on Modula-2 and on an
  556. experimental tool, the TAG compiler-compiler (Transformational Attribute
  557. Grammar) which seems to be a C-independent superset of lex/yacc, because
  558. its syntax allows you to specify all semantic actions without a single
  559. line of C-code (or any other implementation language, for that matter).
  560.  
  561. A. Pyster, "Compiler Design and Constuction (Tools and Techniques)",
  562. Second Ed., Van Nostrand Reinhold, ISBN: 0-442-27536-6.
  563.  
  564. Gabriela O. de Vivo <gdevivo@dino.conicit.ve> writes: The book covers the
  565. general principles of compiler design and presents a good number of
  566. examples focusing on the building of pieceparts of compilers for C and
  567. Pascal.  The implementation (construction) language is C.  Note that this
  568. edition (in contrast with the previous one) is very related to the Unix
  569. world, including the use of tools like Lex, Yacc, and standard utilities.
  570. (Out of print.)
  571.  
  572. Thomas W. Parsons, "Introduction to compiler construction",
  573. Computer Science Press, c1992, ISBN: 0-716782618.
  574.  
  575. Quinn Tyler Jackson <qjackson@direct.ca> writes: Provides a broad overview
  576. of the topics of finite state automaton theory (deterministic and
  577. non-deterministic), lexical analysis, parsing models, and target generation
  578. and optimization strategies.  Includes appendices on lex and yacc.  Most
  579. examples in Pascal.  (Recommended reading for the faint at heart.)
  580.  
  581. "Programming a Personal Computer" by Per Brinch Hansen
  582. Prentice-Hall 1982 ISBN 0-13-730283-5
  583.  
  584. Joe Snyder <joe@semaphorecorp.com> writes:  This unfortunately-titled book
  585. explains the design and creation of a single-user programming environment
  586. for micros, using a Pascal-like language called Edison.  The author presents
  587. all source code and explanations for the step-by-step implementation of an
  588. Edison compiler and simple supporting operating system, all written in
  589. Edison itself (except for a small supporting kernel written in a symbolic
  590. assembler for PDP 11/23; the complete source can also be ordered for the IBM
  591. PC).
  592.  
  593. The most interesting things about this book are:  1) its ability to
  594. demonstrate how to create a complete, self-contained, self-maintaining,
  595. useful compiler and operating system, and 2) the interesting discussion of
  596. language design and specification problems and trade-offs in Chapter 2.
  597.  
  598.  
  599. "Brinch Hansen on Pascal Compilers" by Per Brinch Hansen
  600. Prentice-Hall 1985 ISBN 0-13-083098-4
  601.  
  602. Joe Snyder <joe@semaphorecorp.com> writes:  Another light-on-theory
  603. heavy-on-pragmatics here's-how-to-code-it book.  The author presents the
  604. design, implementation, and complete source code for a compiler and p-code
  605. interpreter for Pascal- (Pascal "minus"), a Pascal subset with boolean and
  606. integer types (but no characters, reals, subranged or enumerated types),
  607. constant and variable definitions and array and record types (but no packed,
  608. variant, set, pointer, nameless, renamed, or file types), expressions,
  609. assignment statements, nested procedure definitions with value and variable
  610. parameters, if statements, while statements, and begin-end blocks (but no
  611. function definitions, procedural parameters, goto statements and labels,
  612. case statements, repeat statements, for statements, and with statements).
  613.  
  614. The compiler and interpreter are written in Pascal* (Pascal "star"), a
  615. Pascal subset extended with some Edison-style features for creating
  616. software development systems.  A Pascal* compiler for the IBM PC is sold by
  617. the author, but it's easy to port the book's Pascal- compiler to any
  618. convenient Pascal platform.
  619.  
  620. This book makes the design and implementation of a compiler look easy.  I
  621. particularly like the way the author is concerned with quality,
  622. reliability, and testing.  The compiler and interpreter can easily be used
  623. as the basis for a more involved language or compiler project, especially
  624. if you're pressed to quickly get something up and running.
  625.  
  626.  
  627. "A Model Implementation of Standard Pascal" by Jim Welsh & Atholl Hay
  628. Prentice-Hall 1986 ISBN 0-13-586454-2
  629.  
  630. Joe Snyder <joe@semaphorecorp.com> writes:  This book is only really useful
  631. if you need to implement a COMPLETE version of a platform-independent
  632. Pascal, but I find it interesting because the 483 pages consist entirely of
  633. the source code listing for the compiler and p-code interpreter, including
  634. copious {comments} to explain the code.  The code eagerly delves into the
  635. horrible minutiae necessary when implementing a complete language, and proves
  636. that no language designer should be allowed to present his design until
  637. AFTER being forced to write a complete compiler for the language.
  638.  
  639. "Writing Interactive Compilers and Interpreters" bu P.J. Brown, 1979, John
  640. Wiley & Sons Ltd ISBN 0 471 27609 X hbk ISBN 0471 100722 pbk
  641.  
  642. Martin Rodgers <cyber_surfer@wildcard.demon.co.uk> writes: Brown explains
  643. why we might wish to use an interactive compiler, and what we might mean
  644. when we make distinctions like "compiled" and "interpreted". He uses Basic
  645. as the example language for his book, plus a little pseudo code where
  646. necessary. Modern Basic may be very different to what he used, but it's
  647. easy to see how techniques that apply a line oriented language might be
  648. extended to a larger unit of compilation. Brown discusses issues that are
  649. specific to interactive language systems, which may be neglected in
  650. compiler books that focus more on a batch approach and optimised
  651. code. Still, he has a few things to say about the use of bytecodes and
  652. native code, plus what might today be called "Just In Time" compiling. An
  653. excellent introduction to compilers, with a few ideas for advanced
  654. compilers, too.  (Out of print.)
  655.  
  656. If anyone sends in others, I'll be happy to add them to the list.
  657.  
  658. * Where can I FTP the sources to the programs in Holub's "Compiler
  659. Design in C" or Mak's "Writing Compilers and Interpreters" ?
  660.  
  661. The programs inMak's second edition are at
  662. <ftp://ftp.wiley.com/public/computer_books/Software_Development/Mak-Writing_Compilers/> |
  663. in an odd MS-DOS only format.  Holub's code is shareware, available on         |
  664. his web site at <http://www.holub.com>.                                        |
  665.  
  666. * Where can I learn about garbage collection ?
  667.  
  668. Garbage collection (more properly, automatic storage management) has its own
  669. mailing list and FAQ.  Find more info at:
  670.  
  671. http://iecc.com/gclist/
  672.  
  673. To join the list, send "subscribe gclist" to majordomo@iecc.com.
  674.  
  675. Regards,
  676. John Levine, comp.compilers moderator
  677. --
  678. Send compilers articles to compilers@iecc.com,
  679. meta-mail to compilers-request@iecc.com.
  680.