How to use sections in AVR asm?

On the website atmel description how to use section in the assembler is not large, and given a type code:

.section .text,"ax",@progbits
 ldi r0, 0xff
 out _SFR_IO_ADDR(invertion PORTB), r0
 out _SFR_IO_ADDR(DDRB), r0


With a simple copy-paste into the project Assembly and compilation gives invalid directive .section.
What could be the problem?
June 14th 19 at 20:04
1 answer
June 14th 19 at 20:06
Solution
What could be the problem?

That you something that is not so compiling? You can place the code in a file with the extension .S and compile it with avr-gcc.
Yes, I did not know that in avrasm no sections. - Rosamond.Walker commented on June 14th 19 at 20:09

Find more questions by tags AssemblerAtmel AVRGCC