Behavior of Retain VariablesΒΆ

The declaration of the retain variables strictly follows the 3S standard (see Remanent variables: Remanent Variables - RETAIN, PERSISTENT

For retain variables it does not matter if they are declared locally in a program or in the global variable list.