Rockbox mail archiveSubject: Re: Cowon D2 EABI
Re: Cowon D2 EABI
From: Rafaël Carré <rafael.carre_at_gmail.com>
Date: Tue, 15 Jun 2010 01:35:10 +0200
On Tue, 15 Jun 2010 00:02:14 +0100
Rob Purchase <rob.purchase_at_googlemail.com> wrote:
> On 14/06/2010 23:14, Andrew Poelstra wrote:
> > 2. If you're just counting clock cycles, the 'volatile' specifier
> > should prevent gcc's loop optimizations, no?
> 2. Yes, but this generates additional code since extra ldr/str
> instructions are generated each time the loop counter is accessed,
You can add 'register' to a variable to (try to) avoid that.
that would be 'register unsigned long x' in i2c-telechips.c
If the code is too dependant of the compiler, perhaps just write it in
-- Rafaël Carré
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew