Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
Translations



Rockbox mail archive

Subject: 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
assembly?

-- 
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