We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
I'm using ARM tools (RVDS4) to develop a project. Now I want to use a software lib which compiled by GCC.
I read spec of GCC and add a compile flag "-mabi=aapcs" to GCC and rebuild the lib.
Question:
BTW, I tested it and get an error about wchar type, so I add "--wchar32" to armcc flag.
Now build pass, but I'm not sure it can run normally.
I could only say "give it a go". It could just work. Running the regression tests could give you more confidence.
This application note (AN212) may be useful:
Building Linux applications using RVCT v4.0 and the GNU Tools and Libraries
In particular you can make RVCT emulate the GCC command line, and use RVCT to compile many GCC-based projects. It can't handle everything (inline assembler seems to cause it problems), but not many projects need that.
HTH,
Pete