Re: C code .vs. Assembly code for Microcontrollers/DSPs ?

mac@coos.dartmouth.edu (Alex Colvin)
8 Mar 1996 19:18:41 -0500

          From comp.compilers

Related articles
[12 earlier articles]
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? yatesc@csee.usf.edu (1996-03-06)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? cdg@nullstone.com (1996-03-07)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? thinklab@earth.usa.net (1996-03-08)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? tchannon@black.demon.co.uk (Tim Channon) (1996-03-08)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? koopman@cs.cmu.edu (1996-03-08)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? hbaker@netcom.com (1996-03-08)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? mac@coos.dartmouth.edu (1996-03-08)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? cdg@nullstone.com (1996-03-08)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? regnirps@aol.com (1996-03-10)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? rjridder@knoware.nl (Robert Jan Ridder) (1996-03-10)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? rfg@monkeys.com (1996-03-14)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? sberg@camtronics.com (1996-03-14)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? bobduff@world.std.com (1996-03-14)
[31 later articles]
| List of all articles for this month |
From: mac@coos.dartmouth.edu (Alex Colvin)
Newsgroups: comp.compilers,comp.dsp
Date: 8 Mar 1996 19:18:41 -0500
Organization: Dartmouth College, Hanover, NH, USA
References: 96-03-006 96-03-025 96-03-049
Keywords: optimize, code

>I don't agree that compilers can do "better code" than 9/10
>programmers if "better code" = "faster code". Consider an interrupt
>function. The C compiler is going to push all the registers on the
>stack, whereas a careful programmer can be very tricky about stack
>pushes and pops in order to minimize them.


Managing which registers need to be saved/restored is one of those
things that compilers do easily and reliably.
--
Alex Colvin
alex.colvin@dartmouth.edu
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.