Code: Alles auswählen
spinix 0.72 March 27, 2012
/$ ls
bin demos license.txt manpages spasm
/$ cd demos
/demos$ ls
lerner filetest vga_512 fibo vgatest
hello1 hello2 dry
/demos$ fibo
hello, world!
fibo(00) = 000000 (00000ms) (1104 ticks)
fibo(01) = 000001 (00000ms) (1104 ticks)
fibo(02) = 000001 (00000ms) (1488 ticks)
fibo(03) = 000002 (00000ms) (1872 ticks)
fibo(04) = 000003 (00000ms) (2624 ticks)
fibo(05) = 000005 (00000ms) (3760 ticks)
fibo(06) = 000008 (00000ms) (5648 ticks)
fibo(07) = 000013 (00000ms) (8672 ticks)
fibo(08) = 000021 (00000ms) (13584 ticks)
fibo(09) = 000034 (00000ms) (21520 ticks)
fibo(10) = 000055 (00000ms) (34368 ticks)
fibo(11) = 000089 (00000ms) (55152 ticks)
fibo(12) = 000144 (00001ms) (88784 ticks)
fibo(13) = 000233 (00001ms) (143200 ticks)
fibo(14) = 000377 (00002ms) (231248 ticks)
fibo(15) = 000610 (00004ms) (373712 ticks)
fibo(16) = 000987 (00007ms) (604224 ticks)
fibo(17) = 001597 (00012ms) (977200 ticks)
fibo(18) = 002584 (00019ms) (1580688 ticks)
fibo(19) = 004181 (00031ms) (2557152 ticks)
fibo(20) = 006765 (00051ms) (4137104 ticks)
fibo(21) = 010946 (00083ms) (6693520 ticks)
fibo(22) = 017711 (00135ms) (10829888 ticks)
fibo(23) = 028657 (00219ms) (17522672 ticks)
fibo(24) = 046368 (00354ms) (28351824 ticks)
fibo(25) = 075025 (00573ms) (45873760 ticks)
fibo(26) = 121393 (00927ms) (74224848 ticks)
/demos$ dry
Dhrystone Benchmark, Version C, Version 2.2
Program compiled without 'register' attribute
Using STDC clock(), HZ=80000000
Trying 5000 runs through Dhrystone:
Measured time too small to obtain meaningful results
Trying 50000 runs through Dhrystone:
Final values of the variables used in the benchmark:
Int_Glob: 5
should be: 5
Bool_Glob: 1
should be: 1
Ch_1_Glob: A
should be: A
Ch_2_Glob: B
should be: B
Arr_1_Glob[8]: 7
should be: 7
Arr_2_Glob[8][7]: 55010
should be: Number_Of_Runs + 10
Ptr_Glob->
Ptr_Comp: 27472
should be: (implementation-dependent)
Discr: 0
should be: 0
Enum_Comp: 2
should be: 2
Int_Comp: 17
should be: 17
Str_Comp: DHRYSTONE PROGRAM, SOME STRING
should be: DHRYSTONE PROGRAM, SOME STRING
Next_Ptr_Glob->
Ptr_Comp: 27472
should be: (implementation-dependent), same as above
Discr: 0
should be: 0
Enum_Comp: 1
should be: 1
Int_Comp: 18
should be: 18
Str_Comp: DHRYSTONE PROGRAM, SOME STRING
should be: DHRYSTONE PROGRAM, SOME STRING
Int_1_Loc: 5
should be: 5
Int_2_Loc: 13
should be: 13
Int_3_Loc: 7
should be: 7
Enum_Loc: 1
should be: 1
Str_1_Loc: DHRYSTONE PROGRAM, 1'ST STRING
should be: DHRYSTONE PROGRAM, 1'ST STRING
Str_2_Loc: DHRYSTONE PROGRAM, 2'ND STRING
should be: DHRYSTONE PROGRAM, 2'ND STRING
Microseconds for one run through Dhrystone: 143
Dhrystones per Second: 6983
/demos$ cd ..
/$ cd bin
/bin$ ls -l
-rwx 5184 mv
-rwx 5424 man
-rwx 5400 tail
-rwx 5276 rm
-rwx 5064 reboot
-rwx 5164 cd
-rwx 1944 rb
-rwx 5100 echo
-rwx 5120 config
-rwx 5036 mkdir
-rwx 6024 sb
-rwx 6344 ls
-rwx 5512 cat
-rwx 5552 chmod
-rwx 5788 cp
-rwx 5344 head
-rwx 5168 pwd
-rwx 5216 kill
-rwx 5764 od
-rwx 5068 halt
-rwx 7060 tar
-rwx 8280 shell
-rwx 5176 linefeed
-rwx 6428 loadi2c
-rwx 5368 more
-rwx 7736 ed
-rwx 5300 ps
-rwx 7524 diag
-rwx 6376 diff
29 files, 163740 bytes
/bin$ ps
# Type Mode Addr Size Name
- ---- ---- ---- ----- ----
0 SPIN BACK 2bf0 9116 /bin/shell
1 PASM DRVR 0000 0 serial I/O
2 PASM DRVR 0000 0 SPI Driver
3 SPIN BACK 5208 10688 kernel.binary
4 SPIN FORE 1404 6120 ps
/bin$ halt
Halting
----------
Edit 2012-03-29: Thread-Titel ent-C3-t... siehe unten...