From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2005-04-21 17:15:18
On Wed, Apr 20, 2005 at 10:22:42PM +0200, fachat wrote: > If both threads are running the same code, yes. In general the zeropage > must be considered as "static global" process variables, and are thus > shared and accessible by all threads similar to such variables in C. > If you want thread-local variables, they must be created "on the heap", > i.e. local variables in C. So you cannot use zeropage adressing there, > only indirect indexed. If cc65 handles this I don't know, Uz? cc65 considers the zero page locations it uses as "registers", so if they're shared between the threads, they have to be saved. If the output file format is relocatable (.o65), the zero page registers are relocatable as well, and the operating system could assign different locations to all running threads. This removes the need to save these pseudo registers in a context switch. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.