Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!aioe.org!.POSTED!not-for-mail From: Walter Banks Newsgroups: comp.lang.c Subject: Re: code snippet Date: Tue, 03 Jan 2012 14:24:57 -0500 Organization: Byte Craft Limited Lines: 39 Message-ID: <4F035609.2E6947C8@bytecraft.com> References: <4eee988e$0$16043$bbae4d71@news.suddenlink.net> <358te7hacn7hb74jdse2phqusbsia2loj6@4ax.com> <4eeea69e$0$13642$bbae4d71@news.suddenlink.net> <4eefad9d$0$15691$bbae4d71@news.suddenlink.net> <4eefdaed$0$16533$bbae4d71@news.suddenlink.net> <4ef0f53d$0$19133$bbae4d71@news.suddenlink.net> <8589915.363.1324479784976.JavaMail.geo-discussion-forums@prht13> <0.4b8c1cc5fedd08ec9708.20111221214133GMT.87r4zxmwky.fsf@bsb.me.uk> <28271069.79.1324514157943.JavaMail.geo-discussion-forums@prdv33> <0.f11c74e6cc5bf465d9c4.20111222031918GMT.87hb0tmgy1.fsf@bsb.me.uk> <9453445.440.1324566701765.JavaMail.geo-discussion-forums@prez5> Reply-To: walter@bytecraft.com NNTP-Posting-Host: w1bQDqNS7PbJ0vaYnwnjhQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Mailer: Mozilla 4.79 [en]C-CCK-MCD NSCPCD479 (Windows NT 5.0; U) X-Accept-Language: en X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:15379 BartC wrote: > > When you're about to pop out to the store, do you take your car's fuel > > system apart and rebuild the carburetor? > > But if you're working in automobile design and production, this is just the > sort of thing you might do. Then you end with a version with a very slightly > better fuel consumption, but which is significant over a million units and > thousands of journeys each. I have worked in automotive for close to a couple decades and it is the type of thing that this industry would not do for a couple reasons. First there is very few things that can be done in asm that cannot be done in C. Very few as in some C compilers actually check that everything that can be done in asm can be done in C. Engine control code in current automotive applications has not been written is not in a timing sensitive code eliminating that as an incentive. As several others have said support of embedded asm is just too unreliable and unneeded in the applications now. I am willing to bet that in the compilers we have developed I can write anything in C that can be written in asm in equal or less code space with equal or less execution time. Regards, Walter.. -- Walter Banks Byte Craft Limited http://www.bytecraft.com