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.
When using gcc to compile c code for ARM platform, we set object platform by using:
-mcpu = xxxxxx
To what extent will that affect results of compiling ?
For example:
-mcpu = cortex-a8
and
-mcpu = cortex-a9
When I use results compiled with -mcpu=cortex-a8 to run on A9 platform, will it cause some problems?
Hello jayzhao,
It would be ok because the calling and receiving conventions for functions don't vary by the cpu specification option.
However, as fot some options (e.g. -msingle-pic-base), linking of objects which will be compiled with or without them would fail.
Best regards,
Yasuhiko Koumoto.