I have this small c code
int main (){
int in [50];
int res [50];
int avg=0;
int i=0;
int j=0;
for(i=0;i<50;i++){
in[i]=i*5+28%25;
}
for(i=0;i<50;i++){
avg=0;
for(j=i-4;j<=i+5;j++){
if((j>=0)&&(j<50)){
avg=avg+in[j];
}
avg=avg/10;
res[i]=avg;
}
}
return 0;
}
which is a simple moving average function
I want to get the assembly code that corresponds to this code, however, I want the x86 ISA assembly code that can run on processor 8086
after looking I ran this commands
bcc -ansi -c -o foo.o foo.c
as86 foo.asm -o foo.o
this ended up with error
as: error opening input file
how can I compile my file to get the assembly code?