[Advcomparch] Διορθωση -- Πρόβλημα με open-file-start command

Konstantinos Nikas knikas at cslab.ece.ntua.gr
Thu Apr 7 11:41:10 EEST 2011


Καλημέρα,

> Με ορισμό
> οικουμενικής μεταβλητής path και
> $outputfile = ($path + "output." + "phase"+ $phase)
> output-file-start $outputfile
>
> ->
>
> [cpu0] cs:0x0804a305 p:0x0e0d6305  jne 0x804a2f8
> Failed to open '/home/vassileios/simics-workspace/results/art/4_2/output.phase0' for writing [artstandard.simics:26] error in 'output-file-start' command
> Error - interrupting script.

Τσέκαρε ότι το path που δίνεις είναι σωστό. O simics μπορεί να 
δημιουργήσει το αρχείο που του λες δεν μπορεί όμως να δηιουργήσει 
φακέλους. Αυτοί πρέπει να προϋπάρχουν.

>
> ενώ με
> $outputfile = ("output." + "phase"+ $phase)
> output-file-start /home/username/simics-workspace/..../$outputfile
>
> ->
>
> [cpu0] cs:0x0804a305 p:0x0e0d6305  jne 0x804a2f8
> Argument error: argument 2 ("output.phase0") given to 'output-file-start' has the wrong type;
> flag expected.
> SYNOPSIS: output-file-start filename [-overwrite] [-append]
>

Προφανώς δεν αναγνωρίζει το argument και μάλιστα μιλάει για argument 2! 
Επομένως το concatenation των strings δε γίνεται με τον τρόπο που το 
έχεις κάνει.Θέλει "", + κτλ.

K.


-- 
Dr. Konstantinos Nikas
Computing Systems Laboratory
School of Electrical and Computer Engineering
National Technical University of Athens

Tel: +30-210-7724159
e-mail: knikas at cslab.ece.ntua.gr
http://www.cslab.ece.ntua.gr/~knikas



More information about the Advcomparch mailing list