1

私は組み込みシステム開発の初心者です。このシステム用にいくつかの C コードをコンパイルしたいだけです。

 uname -mrs
 Linux 2.6.32.28_stm24_0207 sh4
 machine         : STb7100 Reference board
 processor       : 0
 cpu family      : sh4
 cpu type        : STx7100
 cut             : 3.x
 cpu flags       : fpu
 cache type      : split (harvard)
 icache size     : 16KiB (2-way)
 dcache size     : 32KiB (2-way)
 address sizes   : 29 bits physical
 bogomips        : 264.19

その種のシステム用の GCC を使用して PC (Ubuntu) で C コンパイルを実行する手順を教えてください。少しだけご案内が必要です。

4

3 に答える 3

1

Googleで簡単に検索すると、チップに ST40 CPU コアが搭載されていることがわかります。別の Google 検索で、必要な手順がすべて記載されたこのリンクが見つかりました。

于 2013-07-26T14:17:26.747 に答える
0

Building a cross compiler is not trivial. Having said that, should you march down that path at the end you will know a lot more about how the gcc compiler really works, there are, very likely, a bunch of things you don't know that you don't know here. Then again, @Carl Norum has the easier path. Bottom line, the former path is more rewarding, the latter is easier :-)

于 2013-07-26T14:28:29.847 に答える