I am developing software to run on two different pos terminals and I have shared libraries running on arm-xscale-linux-gnueabi-gcc compiler which I want to use for the other arm-linux-gcc terminal. I differentiated gcc (for PC) and arm-xscale-linux-gnueabi-gcc (for first terminal) using code below and I could emulate well. The two compilers have the below macro arm defined. Please help me differentiate these so I can use the same libraries
#ifdef __arm__
// terminal specific code
#else
// pc specific code
#endif
Also, if you have a way of transferring files between pc and this terminal (arm-linux-gcc) over serial connection, please assist. I have tried minicom with lrzsz but I couldn't cross-compile lrzsz for lack of libnsl libraries whose source code I couldn't find.
Note: I'm new here, but I haven't found this question discussed yet.
Thanks.