Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!njsmu!mccc!pjh From: pjh@mccc.edu (Pete Holsberg) Newsgroups: comp.unix.questions Subject: Re: Need Assembly lang. to learn C? Message-ID: <1991May25.141456.5301@mccc.edu> Date: 25 May 91 14:14:56 GMT References: <1991May22.094917.28322@rodan.acs.syr.edu> <4407@inews.intel.com> Organization: The College On The Other Side Of Route One Lines: 39 In article <4407@inews.intel.com> bhoughto@pima.intel.com (Blair P. Houghton) writes: =In article <1991May22.094917.28322@rodan.acs.syr.edu> ldstern@rodan.acs.syr.edu (Larry Stern) writes: =>least a working knowledge of Assembly will help produce a better understanding =>of the C language and tighter C code. = =I've had it. = =I've started to respond to this thread three times, but =always ended up sounding like I wanted a language-religious =argument, so I forgot it. But this one is the killer. Agreed. =Please, please, please, once you've learned assembler and =the inner workings of a computer, please, please, please, =forget all of it and don't even try to mimic it in your =C code. No and yes. =There is _nothing_ in C that even remotely resembles =assembly language or the internal construction of a cpu or =memory. Comp.lang.c spends much of its time debunking the =myth of optimizing performance through minor code changes. The reason that many of us recommend assembly language programming as a prerequisite to a C course has nothing to do with mimicking or optimization or interfacing devices to a computer bus or even designing microcode. It's simply that having thought about registers, and allocating memory for data tables and variables, and the stack, etc., a begining C programmer will have a better idea of what is happening when things go wrong in a C program. Pete -- Prof. Peter J. Holsberg Mercer County Community College Voice: 609-586-4800 Engineering Technology, Computers and Math FAX: 609-586-6944 1200 Old Trenton Road, Trenton, NJ 08690 Internet: pjh@mccc.edu TCF 92 - April ??-??, 1992