Example: register

In the following example, 3 register long variables are defined, a, b and c.

    unsigned long buf[3] ;
    register unsigned long a, b, c;
    buf[0] = 1;
    buf[1] = 3;
    buf[2] = 5;
    a = buf[0];
    b = buf[1];
    c = buf[2];
    lr_output_message ("values are: %ld %ld %ld", a, b, c);
Output:
Action.c(14): values are: 1 3 5