simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] HWPort pointers


From: Michael Hennebry
Subject: Re: [Simulavr-devel] HWPort pointers
Date: Mon, 18 Nov 2013 09:39:49 -0600 (CST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Sun, 17 Nov 2013, Petr Hluzín wrote:


I'd say make them all static instances.
'Twould eliminate some unneeded indirection.
I'm pretty sure they can all be initialized in the pre-body
portions of the constructors of the classes that use them.


I think you mean to make them member variables. Like this:

I did.

  HWPort            portb;
instead of this in class AvrDevice_atmega8:
  HWPort *          portb;

Remember that simulavr can be used to simulate multiple chips at the
same time, so the HWPort objects cannot be static variables. User
needs to use Python or TCL (or Prolog?) API to create more than one
chip, this feature is not available from command line.

Doing that was the original reason I had wanted to use simulavrxx.
I hadn't intended to use Python or TCL though.

--
Michael   address@hidden
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword."  --  Lily

reply via email to

[Prev in Thread] Current Thread [Next in Thread]