[sdiy] help...no make8() function in Arduino...converting PIC to AVR
dan snazelle
subjectivity at hotmail.com
Wed Apr 11 20:50:09 CEST 2012
vey interesting
thanks!
On Apr 11, 2012, at 2:31 PM, Olivier Gillet wrote:
>> this means since I am working with an 16mhz AVR, everything will run at half speed!!
>
> Not true. AVR and PIC are two entirely different architectures. Don't
> jump to any conclusion before:
> 1/ knowing how much CPU cycle each instruction takes.
> 2/ looking at the generated code.
>
> Some PICs do not have a hardware multiplier so a multiplication takes
> a few dozen cycles. On an AVR, an 8-bit x 8-bit multiplication takes 2
> cycles. Instruction set apart, PICs and AVR use a very different
> philosophy when it comes to handling registers and memory access.
> Depending on what your code does and how smart the compiler is, one
> can be much more compact than the other.
>
vey interesting
thanks!
More information about the Synth-diy
mailing list