OT: C perfomance

From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 02/01/04


Date: Sun, 01 Feb 2004 03:59:21 GMT

Chris Torek wrote:
>
... snip ...
>
> I think you are making unwarranted assumptions here, such as which
> version of gcc was involved, and whether the target CPU was the
> PowerPC or the older Mac CPU family, the 680x0. It is, however,
> true that the PowerPC has an unusual instruction set, with instructions
> like "bdnzf" (decrement count and branch if comparison result not
> equal and count not zero) and "rlwinm" (rotate and mask), and
> apparently many versions of gcc do not use it very effectively.
>
> About all that can be said with any certainty, when it comes to
> actual run time of various C source code constructs, is that "it
> depends". :-)

I consider that a prerequisite for building an efficient code
generator is a good assembly language programmer for that
machine. The next requirement is a good register allocation
scheme. These days things are complicated by pipelining and the
need to know jump probabilities.

-- 
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


Relevant Pages

  • PowerPC, uCOS-II, GCC port
    ... layer with GCC; it seems less happy with Cygwin although I would ... MinGW if we can. ... So, first of all, does anyone know of an available PowerPC GCC port ... further and see what plans have been made for board bring-up and BSP ...
    (comp.arch.embedded)
  • PowerPC, uCOS-II, GCC port
    ... I'm just getting started on a new project consisting of a PowerPC 405 ... layer with GCC; it seems less happy with Cygwin although I would ... MinGW if we can. ... further and see what plans have been made for board bring-up and BSP ...
    (comp.sys.powerpc.tech)
  • powerpc problem with .data.page_aligned -> __page_aligned_data conversion
    ... our gcc until 4.3 had the weird ... alignment greater than 32k. ... The patch that converted bits of powerpc to the new macro break since ... Or can do the above making the macro definition drop the alignment part ...
    (Linux-Kernel)
  • How select toolsets in Eclipse (was Re: PowerPC, uCOS-II, GCC port)
    ... I installed the PowerPC port for GCC, which the installer put in ... Then I tried one of Macraigor's demo projects and it worked fine. ... compile PowerPC assembly code. ...
    (comp.arch.embedded)