On 30/11/16 23:08, Diogo Martins Silva wrote:
> Thanks, guys.
>
> I asked because I tried a code snippet, but was getting errors.
>
> I found later that the errors came from my IDE's code analysis, not the
> compiler. The code works fine.
>
> Thumbs up for the assembly examples!
>
Sometimes it
On 30/11/16 17:07, Georg-Johann Lay wrote:
> On 30.11.2016 15:32, Paul "LeoNerd" Evans wrote:
>> On Wed, 30 Nov 2016 18:18:11 +0530
>> Senthil Kumar Selvaraj wrote:
>>
>>> Diogo Martins Silva writes:
>>>
Hello all.
The avr-gcc wiki (https://gcc.gnu.org/wiki/avr-gcc) lists 24 bits
>>
Thanks, guys.
I asked because I tried a code snippet, but was getting errors.
I found later that the errors came from my IDE's code analysis, not the
compiler. The code works fine.
Thumbs up for the assembly examples!
Diogo
On Wed, 2016-11-30 at 14:14 +0100, Georg-Johann Lay wrote:
> On 30.11
On 30.11.2016 15:32, Paul "LeoNerd" Evans wrote:
On Wed, 30 Nov 2016 18:18:11 +0530
Senthil Kumar Selvaraj wrote:
Diogo Martins Silva writes:
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?
Use __ui
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
On Nov 30, 2016, at 8:32 AM, Paul LeoNerd Evans wrote:
> Is it possible to get that added to as the expected names
>
> int24_t
> uint24_t
I am opposed because 24 is not a standard int.
stdint.h standardizes types across compilers.
--
David Kelly N4HHE, dke...@hiwaay.net
===
On Wed, 30 Nov 2016 18:18:11 +0530
Senthil Kumar Selvaraj wrote:
> Diogo Martins Silva writes:
>
> > 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?
>
> Use __uint24 as the type. Like so
>
On 30.11.2016 08:40, Diogo Martins Silva wrote:
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
You can use it basically like any other integer type, for example:
__uint24 mul24 (unsigne
Diogo Martins Silva writes:
> 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?
Use __uint24 as the type. Like so
$ cat test.c
volatile __uint24 x;
int main() {
x++;
x--;
}
$ avr-gcc -S test.c -