Problem mit Simulator

  • 1
  • 2
  • 3
  • 4
  • Page 3 of 4
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1374
Registered: 03 / 2005
Subject:

Re: Problem mit Simulator

 · 
Posted: 03.01.2012 - 10:46  ·  #17
Hi Thomas.

The optimiser reduces code size (that is its purpose) without affecting functionality, and, as far as possible, without compromising simulation. There is a section in the manual that tells you where the simulator is affected, and also the various switches that you can use to modify its behaviour.

Quote

{ $OPTI SMARTLINK_ONLY} // This is a quick Optimizing to throw out unused procedures and functions


This is really only intended for users who do not trust the optimiser, and is very limited in its funtionality. I would strongly urge you not to use this option. If you have any problems with optimisation, please let me know and I will try to fix them as quickly as possible.

Quote

{ $OPTI_QUICK} // This makes only one Optimization Loop


Is certainly a valid option and useful if the optimisation process starts to get very slow.

Regards

Merlin.
ThomasW69
 
Avatar
 
Subject:

Re: Problem mit Simulator

 · 
Posted: 04.01.2012 - 07:45  ·  #18
@Rolf

Da hätte ich wobl besser lesen sollen ;-)
ThomasW69
 
Avatar
 
Subject:

Re: Problem mit Simulator

 · 
Posted: 19.01.2012 - 13:11  ·  #19
Hello Avra.
Quote
Your VARIABLEN.PAS has some constants already delivered with uFix64 library.


Yes but if I remove them and replace with the variable names in your source then I will get an error message (error: identifier or factor expected).
Maybe they are only available when the ufix64.pas source is available. Are this local consts in uFix64.pas? If yes they should be made global to use it outside this unit.

@Rolf
ein weiteres Problem ist dass ich mit der aktuellen Compilerversion schon bei der allerersten Ausgabe auf den SerportC1 im Xmegadrive.pas einen Stack overflow bekomme. Voher liegt StckPeak bei 5 und nach Ausführung von

writeln(SeroutC1, 'Perseusdrive v1.0');

geht der wert auf 883 hoch. Da pssiert doch weiter nichts. Auch alle Prozesse hab ich mal auskommentiert. Hilft aber nicht.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Problem mit Simulator

 · 
Posted: 19.01.2012 - 13:34  ·  #20
Hello Thomas,

these definitions are Unit internal and not accessible outside. Maybe it is worth to change this.

rolf
ThomasW69
 
Avatar
 
Subject:

Re: Problem mit Simulator

 · 
Posted: 20.01.2012 - 11:29  ·  #21
Hallo Rolf.

Ich hatte meinen Post gestern nochmal editiert wegen des beschriebenen Stack problems.
Gibt es eine Möglichkeit für mich die Ursache für den Stack Overflow zu ermitteln wenn das innnerhalb eines einzelnen Befehles passiert?


Aktuell versuche ich auch mit dem ISP3-USB über JTAG auf der Hardware zu debuggen. Leider ist das teilweise nicht von Erfolg gekrönt.
Wenn der Simulator/Debugger startet, dann bekomme ich die MEldung
"ISP-3 JTAG-ICE found. use it for debugging" Soweit so gut.
Das bestätige ich mit Klick auf Yes. Dann bekomme ich immer die Meldung
"Project Date/Time has changed! Reprogram Target?"
Wenn ich da jetzt auf "Yes" klicke dann startet der Programmer. Egal ob ich jetzt programmiere oder nicht, der Simulator friert ein und kann nur über den Taskmanager beendet werden. Da scheint irgendwie noch ein Bug drin zu sein.
Klicke ich auf "Cancel", dann ist JTAG Debugging möglich.

Die Meldung, dass das Projektdatum geändert wurde kommt im Simulator übrigens immer wenn ich zum Beispiel aus einem anderen Programm in den Simulator wechsel (z.B per Shift-Tab).
ThomasW69
 
Avatar
 
Subject:

Re: Problem mit Simulator

 · 
Posted: 20.01.2012 - 11:46  ·  #22
Warum ist das "view Process states" Fenster modal? Solange es offen ist kann der Simulator nicht bedient werden.
Könnte mand as so machen, dass dieses offen ist und mit jedem Programmschritt (F7,F8 usw, Außnahme F9) atualisiert wird. So könnte man beim Durchsteppen des Programms den Stackverlauf immer im Auge behalten. So muss ich jedes mal das Fenster schließen, einen Befehl ausführen und dann das Fenster wieder aufmachen.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Problem mit Simulator

 · 
Posted: 20.01.2012 - 12:16  ·  #23
Hallo Thomas,

das hatte historische Gründe. Vor 14 Jahren war ein 17zoller ein riesen Bildschirm. Da musste Platz gespart werden. Ich schaue mal ob man das ohne weiteres ändern kann.

rolf
ThomasW69
 
Avatar
 
Subject:

Re: Problem mit Simulator

 · 
Posted: 20.01.2012 - 12:39  ·  #24
Ja die Zeiten ändern sich. Ich hab hier zwei Bildschirme am Rechner. Wer weiß wann man an 40" Arbeitsplätzen arbeitet.
  • 1
  • 2
  • 3
  • 4
  • Page 3 of 4
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 8 · Cache Hits: 14   136   150 · Page-Gen-Time: 0.015028s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI