can gcc cross compile for different CPU?

后端 未结 2 1716
灰色年华
灰色年华 2021-02-13 17:17

Is it possible for gcc, installed on fedora 16, to cross compile for a different CPU, say SPARC? I have build a certain understanding, need some expert to correct me if I am wr

2条回答
  •  面向向阳花
    2021-02-13 17:59

    You would have to build such a version. That's part of the process of porting gcc to a new platform. You build a version that cross-compiles, then you cross-compile that version, then you test that version on the new platform, debug, rinse, and repeat.

提交回复
热议问题