'Explicit Register Variables in Ada

C allows you to create explicit register variables which force the compiler to store the variable in a specific register (not just any General Purpose Register):

register int *p2 asm ("r1") = t1;

Is there an equivalent in Ada?

ada


Solution 1:[1]

This can be done with machine code insertions as described in section 13.8 of the Ada Language Reference Manual.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jim Rogers