- #1
colourbox
- 1
- 0
how to write an assembly program to calculate the dot products of two arrays ?? Thx
Anyone know how to write an assembly program (source code) to calculate the dot products of two arrays with LC 2 ?
Given:
The size of each array is 15 (a[0],...,a[14] ; b[0],...,b[14]) that are stored in the memory.
The dot product result is obtained by: a[0]*b[0] + a[1]*b[1] + ... + a[14]*b[14] and result is stored in the memory.
Anyone know how to write an assembly program (source code) to calculate the dot products of two arrays with LC 2 ?
Given:
The size of each array is 15 (a[0],...,a[14] ; b[0],...,b[14]) that are stored in the memory.
The dot product result is obtained by: a[0]*b[0] + a[1]*b[1] + ... + a[14]*b[14] and result is stored in the memory.