资源描述:
《Understanding and Writing Compiler Richard Bornat》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、UnderstandingandWritingCompilersAdo-it-yourselfguideRichardBornatMiddlesexUniversity,London.richard@bornat.me.ukFirstpublished
2、1979.Internetedition
3、2007;corrected2008.Copyrightc1979,2007,2008RichardBornat.Permissiontocopywithoutfeeallorpartofthismaterialisgrantedprovidedthatthecopiesarenotm
4、adeordistributedfordirectcommercialadvantage,thecopyrightnoticeaboveandthetitleofthebookappear,andnoticeisgiventhatcopyingisbypermissionofRichardBornat.OriginaleditionpublishedbyMacmillanPressLtd.,Basingstoke,UK.InterneteditionpublishedbyRichardBornat,28AlbanyRoad,LONDONN44RL,UK.richard@bor
5、nat.me.ukPrefacetotheonlineeditionIwrotethisbookoncompilinginthelate1970s.Itwasasuccess.Istillmeetpeoplewholearntaboutcompilingfromit.Igetthreeorfourrequestsayearfrompeoplewho'dlikeacopy.IusedtotellthemtouseAbebooks.com,butnowtherearen'tanycopieseventhere.SinceIownthecopyright(thankstoMacmi
6、llan),Icanpublishitagain,forfree.ForawhileItriedtoreproducetheoriginalbookfromtheoriginalnrosource,butUnixversion6nroislongdead,andtheprinter-driverhacksthatmadeboldandunderliningworkareevendeader.SoIhackeditintoLATEX,andhereitis.IxedtheerrorsthatIknewabout,changedaveryfewinfelicities,an
7、dotherwisetriedtochangeaslittleaspossible.Whyisn'titinC?WhenIbegantowritethisbookIwasheavilyintoBCPL.BythetimeitwasnishedIwasaCprogrammer.ThedisplayeditordedthatIdevelopedtowritethebookwaswritteninC.CisinmanyrespectsadirectdescendantofBCPL.Iwaspressed,evenbeforethebookcameout,torewriteallt
8、heexamplesinC.Ididn'tdothatforvariousreasons,somegoodandsomebad.Itwouldbeanenormouseorttodoitnow,becauseCisnowsofarfromitsorigins.Old-fashionedopinionsIagreewithquitealotofthisbook,butbynomeansallofit.I'vedecidedtochangenothing.Forbetterorworse,hereitis.iiiPrefaceInthepastcompilerwritersan
9、ddesignersseemedtoformanelitegroupwithincomputingscience,setapartbytheiresotericknowledgeandtheirabilitytoproducelarge,importantsystemprogramswhichreallyworked.Theadmirationofthecomputingpublic,whetheritwasoncedeservedornot,isnolongermeritednowthatthepri