Hi My name is Lucy and I am having trouble putting some c code into asm Please could you have a look at this c program and tell me what it is in ASM
I am in desperate need of help...Thanks Lucy
sp_ex.c (annotated)
\\ Include standard libraries - don''t worry about this!
#include
\\ Make it easier to read: from here on, ORDER is 512, or the number of
\\ elements to use in the FIR filter.
#define ORDER 512
\\ The start of the actual program
int main(int argc, char **argv)
{
\\ An array of 512 signed 16 bit numbers to contain the constants
short int c[ORDER];
\\ An array of 512 signed 16 bit numbers to contain the shift register
short int b[ORDER];
\\ A temporary counter
int i;
\\ File handles
FILE *fc, *fo, *fi;
\\ A temporary signed 16 bit number
short int t;
\\ A 64 bit accumulator (you only need 48 bits!)
long long acc;
/* Parse and check the command line options */
\\ Make sure there are only three arguments on the command line. If not,
\\ print a message saying:
\\ Usage: <input>
Most modern compilers have an option that makes them output assembly instead of (or in addition to) a compiled program. Read your compilers documentation to find out how you do it.
Thanks Do you know a specific compiler is it in linux or windows
quote:Original post by Anonymous Poster
Most modern compilers have an option that makes them output assembly instead of (or in addition to) a compiled program. Read your compilers documentation to find out how you do it.