i have a windows machine(intel processor) and gcc installed.
gcc -save-temps "filename.c"
generated the intermediate files and i viewed the assembly file (.s file) which is intel x86 instructions.
my question is how to generate the assembly which is ARM instruction set architecture equivalent on the same machine?
gcc is always built for a single target. https://developer.arm.com/open-source/gnu-toolchain is where you get your arm-gcc cross-compiler toolchain. Clang on the other hand can generate code for multiple targets.
Both are available on https://www.godbolt.org to see the assembly directly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.