TEXT   27

div8

Guest on 8th July 2022 05:27:57 PM

  1. /*div8.c
  2.                         Shows optimizations in code generated by avr-gcc
  3.                
  4. ****************************************************** ***************************/
  5.  
  6. #include <avr/io.h>
  7. char n=8;                      
  8. int main()
  9. {
  10.   n /= 8; //Obs does not optimize if int8_t, int16_t or int
  11.   DDRB |= 5;
  12. }

Raw Paste


Login or Register to edit or fork this paste. It's free.