shared variable slots

The feature of shared variables in C is a wonderful saver of DATA space. Can the same be implemented in assembler ?

Erik

Parents
  • Here is an idea. Take your assembly routines and write the headers in C. Include parameter and local variables, but nothing else. Then have the compiler emit assembly code for this framework. Now merge in the left out assembly code, and your done. The linker will then overlay variables just like C objects.

Reply
  • Here is an idea. Take your assembly routines and write the headers in C. Include parameter and local variables, but nothing else. Then have the compiler emit assembly code for this framework. Now merge in the left out assembly code, and your done. The linker will then overlay variables just like C objects.

Children
More questions in this forum