dslinux/linux-2.6.x/drivers/mmc scsd_c.c scsd_s.S

Chris McCormick chris at mccormick.cx
Tue Aug 29 06:49:56 CEST 2006


On Mon, Aug 28, 2006 at 02:10:38PM +0200, Stefan Sperling wrote:
> On Mon, Aug 28, 2006 at 01:56:05PM +0200, Amadeus wrote:
> > So, with stack in GBA ROM space, I think assembler is mandatory for each 
> > driver accessing GBA ROM space as IO. Or we find another way of 
> > blocking stack usage in C programs.
> 
> I'm also in favour of using C as much as possible, if possible.
> 
> Assembly is hard to maintain and debug. Especially if you are
> not used to it (like myself and lots of other people).

And if you must insist on coding in assembler you should do extensive
profiling against the code that gcc generates, as in most cases it will
produce much better optimised assembler than what you can write by hand.

Best,

Chris.

-------------------
chris at mccormick.cx
http://mccormick.cx



More information about the dslinux-devel mailing list