Complete the code to define the target architecture for cross-compilation.
#define TARGET_ARCH [1]
For cross-compilation, the target architecture is usually different from the host. Here, "arm" is a common target architecture for embedded devices.
Complete the command to invoke the cross-compiler for ARM architecture.
[1]-gcc main.c -o mainThe prefix "arm-linux-gnueabi" is commonly used for ARM cross-compilers targeting Linux with the EABI standard.
Fix the error in the Makefile line to set the cross-compiler prefix.
CROSS_COMPILE = [1]The CROSS_COMPILE variable should include the trailing dash to prefix compiler commands correctly, e.g., "arm-linux-gnueabi-gcc".
Fill both blanks to create a dictionary mapping architectures to their cross-compiler prefixes.
const char* cross_prefixes[] = { [1], [2] };Each architecture has a specific cross-compiler prefix ending with a dash to be used in build commands.
Fill all three blanks to complete the cross-compilation command with architecture, source file, and output name.
[1]-gcc [2] -o [3]
The command uses the ARM cross-compiler prefix, compiles the source file main.c, and outputs the executable named main.