We present methods to design programs or electronic circuits, for performing any operation on k registers of any sizes in a processor, in such a way that one uses no other working memory (such as other registers or external memories). In this way, any operation is performed with at most 4k − 3 assignments of these registers, or 2k − 1 when the operation is linear or bijective.