dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Cowon D2 EABI

Re: Cowon D2 EABI

From: Rafaël Carré <>
Date: Tue, 15 Jun 2010 01:35:10 +0200

On Tue, 15 Jun 2010 00:02:14 +0100
Rob Purchase <> 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é

Received on 2010-06-15

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy