Hello!
The compiler works well (as least for now).
I compile a C source file (call it `main.c`), with `arm-tcc main.c -o main.o`, then parse the output ELF file with `readelf -A main.o`, and the result said that the file has the target instruction of ARMv6.
But I actually need the code to be compiled to ARMv4, particularly for ARM7TDMI-S cpus. In GCC, there was an option `-march=` to specify the target CPU to run on, therefore generate the instructions properly. But I can't see an option like this in tcc.
My question is, how can I force TinyCC to compile code to ARMv4 code instead of ARMv6 like in current version?
Also another question: output of arm-tcc is usually in ARM32 instructions. How can I force tcc to output Thumb-1 code? Is there any options like `-mthumb` on GCC?
Thank you!