C vs. ASM na przykładzie PIC18F

Apr 05, 2014 10 Replies



> 4. AVR-GCC na atmega32 -O2 (nie znam jeszcze dokładnie avr-gcc i jego > opcji)
> 376 ROM, 37 RAM
> bez funkcji zlicz() 222 ROM, 37 RAM

Avr studio4 zlicz() - 132 bajty całość 356 bajtów.

No być może, jakieś opcje trzeba ustawić, ja to kompilowałem z command line, to są moje pierwsze wprawki w avr-gcc

jp

>

Możesz wkleić kod po kompilacji? W ATMEGA są zdaje się instrukcje 16-bitowe. W takim razie oznacza to, że jest <66 instrukcji?

S.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required