Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22113

Compiling an assembly source on Mac OS and converting file to object/executable

$
0
0

I'm very new to programming and I had a question about compiling of assembly language on Mac OS. I know that to convert my .c to an .s I should use gcc -m32 -S. However, I already wrote my own .s file. I was wondering if it was possible to convert the .s I've made so that my Mac can compile it. The thing is I want to compile both the .c and .s to verify that they both return the same value.


Viewing all articles
Browse latest Browse all 22113


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>