[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Re: Order of bytes

From: Felipe Hernan
Subject: [avr-gcc-list] Re: Order of bytes
Date: Sun, 7 Oct 2007 14:41:33 -0400

What is the order of the bytes? by0= MSB, or by3= MSB ?
AVR stores low byte at the lower address. Is this order retained in
the above example?

static int order __attribute__((unused)) = 0xAAFF;

avr-gcc test.c -c
avr-objdump -D test.o
test.o:     file format elf32-avr

Disassembly of section .data:

00000000 <order>:
   0:   ff aa           std     Y+55, r15       ; 0x37

The avr-gcc works as little endian, then in your example b3= MSB.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]