Re: [cc65] cc65 and VICE

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2000-01-21 12:44:00


Hi!

> (you want to be called this way, don't you?)

It's my nickname. No one actually calls me "Ullrich".

> Hm, I've written about a pointer which acts like a base pointer. This
> pointer must reside somewhere in memory, and there should be a pre-
> agreed way to access it. Perhaps, we could add an entry to the symbol
> file which tells the debugger where to access it.
>
> I don't think it should be located on the stack!

This means that functions are no longer reentrant. Think about

	unsigned fac (unsigned V)
	{
	    return (V == 1)? 1 : V * fac (V-1);
	}

The second call to the function will overwrite the global pointer, so it is
lost. You may save the old value and restore it on function exit, but it is
not as easy as it looks.

Regards


	Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:35 CET