how can I get the assembly code from program C, I used this recommendation and I use something like this -c -fmessage-length=0 -O2 -S in Eclipse, but I have an error, thanks in advance for any help
now i have this error
atam.c:11: error: conflicting types for 'select' /usr/include/sys/select.h:112: error: previous declaration of 'select' was here atam.c:11: error: conflicting types for 'select' /usr/include/sys/select.h:112: error: previous declaration of 'select' was here
this is my function
int select(int board[],int length,int search){ int left=0, right=length-1; while(1){ int pivot_index=(right+left)/2; int ordered_pivot=partition(board,left,right,pivot_index); if(ordered_pivot==search){ return board[ordered_pivot]; } else if(search<ordered_pivot){ right=ordered_pivot-1; } else{ left=ordered_pivot+1; } } }
source share