utils: add parameter for sdcard image file for createimg command
examples: add more benchmark results, other small changes
This commit is contained in:
parent
ac42eec912
commit
21a45b06cf
3 changed files with 30 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ Running benchmarks.prog
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
Arty-A7-35T
|
Arty-A7-35T
|
||||||
83MHz, 64KB SRAM, 256MB DRAM
|
83MHz, 64KB SRAM, 256MB DRAM
|
||||||
running in DRAM only (except corelib, stdlib, runtime)
|
running in DRAM (except corelib, stdlib, runtime)
|
||||||
|
|
||||||
Running benchmarks.prog
|
Running benchmarks.prog
|
||||||
empty loop 10M 00:00:30
|
empty loop 10M 00:00:30
|
||||||
|
|
@ -45,4 +45,28 @@ Running benchmarks.prog
|
||||||
exp() 10K 00:00:29
|
exp() 10K 00:00:29
|
||||||
cos() 10K 00:00:06
|
cos() 10K 00:00:06
|
||||||
|
|
||||||
|
Arty-A7-35T
|
||||||
|
76.92MHz, 64KB SRAM, 256MB DRAM
|
||||||
|
running in DRAM (except corelib, stdlib, runtime)
|
||||||
|
|
||||||
|
Running benchmarks.prog
|
||||||
|
empty loop 10M 00:00:32
|
||||||
|
write variable 10M 00:00:40
|
||||||
|
read variable 10M 00:00:43
|
||||||
|
integer addition 10M 00:00:52
|
||||||
|
real addition 1M 00:00:34
|
||||||
|
integer multiplication 1M 00:01:17
|
||||||
|
real multiplication 1M 00:01:08
|
||||||
|
integer division 1M 00:01:57
|
||||||
|
real division 1M 00:01:17
|
||||||
|
string indexing 1M 00:01:19
|
||||||
|
string iteration 1M 00:00:51
|
||||||
|
new/dispose 1k 1M 00:00:29
|
||||||
|
new/dispose 128k 1M 00:00:30
|
||||||
|
array copy 1k 10K 00:00:03
|
||||||
|
array copy 128k 1K 00:00:48
|
||||||
|
exp() 10K 00:00:32
|
||||||
|
cos() 10K 00:00:06
|
||||||
|
|
||||||
|
Running benchmarks.prog
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
program viewpict;
|
program pictviewer;
|
||||||
type PictData = record
|
type PictData = record
|
||||||
magic, mode:integer;
|
magic, mode:integer;
|
||||||
palette: array [0..15] of integer;
|
palette: array [0..15] of integer;
|
||||||
|
|
@ -40,5 +40,6 @@ begin
|
||||||
|
|
||||||
loadPalette(pic);
|
loadPalette(pic);
|
||||||
loadPic(pic);
|
loadPic(pic);
|
||||||
|
write('Press any key...');
|
||||||
read(ch);
|
read(ch);
|
||||||
end.
|
end.
|
||||||
|
|
@ -372,8 +372,7 @@ def writetoimg(img, pathname, infilepath):
|
||||||
putfile(infilepath, filename, img, vol, vol.startBlock, slotno)
|
putfile(infilepath, filename, img, vol, vol.startBlock, slotno)
|
||||||
|
|
||||||
|
|
||||||
def create_image_with_stuff():
|
def create_image_with_stuff(imgfile):
|
||||||
imgfile = "sdcard.img"
|
|
||||||
bootimage = "../lib/coreloader.prog"
|
bootimage = "../lib/coreloader.prog"
|
||||||
dir_slots = 256
|
dir_slots = 256
|
||||||
extent_size = 8192
|
extent_size = 8192
|
||||||
|
|
@ -572,7 +571,7 @@ def create_image_with_stuff():
|
||||||
|
|
||||||
slotnr = putfile("../examples/lines.pas", None , f, part, partstart, slotnr)
|
slotnr = putfile("../examples/lines.pas", None , f, part, partstart, slotnr)
|
||||||
|
|
||||||
slotnr = putfile("../examples/viewpict.pas", None , f, part, partstart, slotnr)
|
slotnr = putfile("../examples/pictviewer.pas", None , f, part, partstart, slotnr)
|
||||||
# slotnr = putfile("viewpict.prog", None , f, part, partstart, slotnr)
|
# slotnr = putfile("viewpict.prog", None , f, part, partstart, slotnr)
|
||||||
slotnr = putfile("../examples/ara.pict", "ara.pict" , f, part, partstart, slotnr)
|
slotnr = putfile("../examples/ara.pict", "ara.pict" , f, part, partstart, slotnr)
|
||||||
slotnr = putfile("../examples/shinkansen.pict", "shinkansen.pict" , f, part, partstart, slotnr)
|
slotnr = putfile("../examples/shinkansen.pict", "shinkansen.pict" , f, part, partstart, slotnr)
|
||||||
|
|
@ -601,5 +600,5 @@ if __name__ == "__main__":
|
||||||
destfilename = sys.argv[4]
|
destfilename = sys.argv[4]
|
||||||
writetoimg(imgfile, destfilename, infilepath)
|
writetoimg(imgfile, destfilename, infilepath)
|
||||||
elif sys.argv[1] == "createimg":
|
elif sys.argv[1] == "createimg":
|
||||||
create_image_with_stuff()
|
create_image_with_stuff(sys.argv[2])
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue