1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
======= Container "mydsp" ==========
======= External types declaration ==========
DeclareStructTypeInst(StructType<"Soundfile",("void*", fBuffers)("int*", fLength)("int*", fSR)("int*", fOffset)("int", fChannels)("int", fParts)("int", fIsDouble)>)
======= Sub container begin ==========
======= Sub container end ==========
======= User Interface begin ==========
BlockInst
OpenVerticalBox("waveform1")
CloseboxInst
EndBlockInst
======= User Interface end ==========
======= Global declarations begin ==========
BlockInst
DeclareVarInst("float", fmydspWave0[10], kStaticStruct|kConst, FloatArrayNumInst{0.1f,0.123f,0.142567f,0.15263739f,0.568453f,0.1f,0.123f,0.142567f,0.15263739f,0.568453f})
EndBlockInst
======= Global declarations end ==========
======= DSP struct begin ==========
DeclareStructTypeInst(StructType<"mydsp",("int", fmydspWave0_idx)("int", fSampleRate)>)
======= DSP struct end ==========
DeclareFunInst("int", "getNumInputs")
BlockInst
RetInst(Int32(0))
EndBlockInst
EndDeclare
DeclareFunInst("int", "getNumOutputs")
BlockInst
RetInst(Int32(2))
EndBlockInst
EndDeclare
======= Init begin ==========
BlockInst
StoreVarInst(Address(fSampleRate, kStruct), LoadVarInst(Address(sample_rate, kFunArgs)))
StoreVarInst(Address(fmydspWave0_idx, kStruct), Int32(0))
EndBlockInst
======= Init end ==========
======= Compute control begin ==========
Instructions complexity : Load = 2 Store = 0 Binop = 0 Mathop = 0 Numbers = 2 Declare = 2 Cast = 0 Select = 0 Loop = 0
BlockInst
DeclareVarInst("FAUSTFLOAT*", output0, kStack, LoadVarInst(Address(outputs, kFunArgs)[Int32(0)]))
DeclareVarInst("FAUSTFLOAT*", output1, kStack, LoadVarInst(Address(outputs, kFunArgs)[Int32(1)]))
EndBlockInst
======= Compute control end ==========
======= Compute DSP begin ==========
Instructions complexity : Load = 8 Store = 4 Binop = 4 [ { Int(%) = 1 } { Int(+) = 2 } { Int(<) = 1 } ] Mathop = 0 Numbers = 5 Declare = 1 Cast = 2 Select = 0 Loop = 1
ForLoopInst
DeclareVarInst("int", i0, kLoop, Int32(0))
BinopInst("<", LoadVarInst(Address(i0, kLoop)), LoadVarInst(Address(count, kFunArgs)))
StoreVarInst(Address(i0, kLoop), BinopInst("+", LoadVarInst(Address(i0, kLoop)), Int32(1)))
BlockInst
StoreVarInst(Address(output0, kStack)[LoadVarInst(Address(i0, kLoop))], CastInst("FAUSTFLOAT", Int32(10)))
StoreVarInst(Address(output1, kStack)[LoadVarInst(Address(i0, kLoop))], CastInst("FAUSTFLOAT", LoadVarInst(Address(fmydspWave0, kStaticStruct)[LoadVarInst(Address(fmydspWave0_idx, kStruct))])))
StoreVarInst(Address(fmydspWave0_idx, kStruct), BinopInst("%", BinopInst("+", Int32(1), LoadVarInst(Address(fmydspWave0_idx, kStruct))), Int32(10)))
EndBlockInst
EndForLoopInst
======= Compute DSP end ==========
======= Post compute DSP begin ==========
BlockInst
EndBlockInst
======= Post compute DSP end ==========
======= Flatten FIR begin ==========
BlockInst
========== Declaration part ==========
DeclareVarInst("float", fmydspWave0[10], kStaticStruct|kConst, FloatArrayNumInst{0.1f,0.123f,0.142567f,0.15263739f,0.568453f,0.1f,0.123f,0.142567f,0.15263739f,0.568453f})
DeclareVarInst("int", fmydspWave0_idx, kStruct)
DeclareVarInst("int", fSampleRate, kStruct)
========== Init method ==========
StoreVarInst(Address(fSampleRate, kStruct), LoadVarInst(Address(sample_rate, kFunArgs)))
StoreVarInst(Address(fmydspWave0_idx, kStruct), Int32(0))
========== Static init method ==========
========== Subcontainers ==========
========== Control ==========
========== Compute control ==========
DeclareVarInst("FAUSTFLOAT*", output0, kStack, LoadVarInst(Address(outputs, kFunArgs)[Int32(0)]))
DeclareVarInst("FAUSTFLOAT*", output1, kStack, LoadVarInst(Address(outputs, kFunArgs)[Int32(1)]))
========== Compute DSP ==========
ForLoopInst
DeclareVarInst("int", i0, kLoop, Int32(0))
BinopInst("<", LoadVarInst(Address(i0, kLoop)), LoadVarInst(Address(count, kFunArgs)))
StoreVarInst(Address(i0, kLoop), BinopInst("+", LoadVarInst(Address(i0, kLoop)), Int32(1)))
BlockInst
StoreVarInst(Address(output0, kStack)[LoadVarInst(Address(i0, kLoop))], CastInst("FAUSTFLOAT", Int32(10)))
StoreVarInst(Address(output1, kStack)[LoadVarInst(Address(i0, kLoop))], CastInst("FAUSTFLOAT", LoadVarInst(Address(fmydspWave0, kStaticStruct)[LoadVarInst(Address(fmydspWave0_idx, kStruct))])))
StoreVarInst(Address(fmydspWave0_idx, kStruct), BinopInst("%", BinopInst("+", Int32(1), LoadVarInst(Address(fmydspWave0_idx, kStruct))), Int32(10)))
EndBlockInst
EndForLoopInst
========== Post compute DSP ==========
EndBlockInst
======= Flatten FIR end ==========
======= Object memory footprint ==========
Heap size int = 8 bytes
Heap size int* = 0 bytes
Heap size real = 0 bytes
Total heap size = 8 bytes
Stack size in compute = 16 bytes
======= Variable access in Control ==========
Field = fmydspWave0_idx size = 1 size_bytes = 4 read = 0 write = 0 ratio = 0
Field = fSampleRate size = 1 size_bytes = 4 read = 0 write = 0 ratio = 0
======= Variable access in compute control ==========
Field = fmydspWave0_idx size = 1 size_bytes = 4 read = 0 write = 0 ratio = 0
Field = fSampleRate size = 1 size_bytes = 4 read = 0 write = 0 ratio = 0
======= Variable access in compute DSP ==========
Field = fmydspWave0_idx size = 1 size_bytes = 4 read = 2 write = 1 ratio = 3
Field = fSampleRate size = 1 size_bytes = 4 read = 0 write = 0 ratio = 0
|