>PS: I've also seen procedure _sd_read_512(), filling an array, index by index 
>([0], [1], ...), resulting in 512 lines in the body. There sure must be a 
>reason, but I have to ask: why not using a loop ?

While loops are handled very efficient by the compiler, access to arrays with a 
variable index is not as much so. For the PATA lib, it definitely increases 
speed a lot to read one sector not using a loop. For SD I'm not so sure about 
this, as data transfer over SPI takes its time, so the difference may be less 
here.
But that's surely the reason for the existence of this "bad style" part: Speed.

Greets,
Kiste

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to