Re: 24 bits (u)ints

<[email protected]> Wed, 30 Nov 2016 13:13:38 +0000
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <2B59FEB5BF309842B45312827BFB5787C35112@CHN-SV-EXMX07.mchp-main.com>
Extensions => Types => Signed and unsigned 24-bit integers: __int24 (4.7), __uint24 (4.7).

int main(void)
{
    volatile __uint24 a = 0;
}

Gives
    volatile __uint24 a = 0;
  58:	19 82       	std	Y+1, r1	; 0x01
  5a:	1a 82       	std	Y+2, r1	; 0x02
  5c:	1b 82       	std	Y+3, r1	; 0x03


 :: Morten

-----Original Message-----
From: AVR-GCC-list [mailto:[email protected]] On Behalf Of Diogo Martins Silva
Sent: 30. november 2016 08:41
To: [email protected]
Subject: [avr-gcc-list] 24 bits (u)ints

Hello all.

The avr-gcc wiki (https://gcc.gnu.org/wiki/avr-gcc) lists 24 bits (u)ints as an extension since version 4.7. How do I use them?

Thanks

Diogo


_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list