Difference between revisions of "Compiling workloads"
From gem5
(Created page with "Sometimes you might want to simulate a machine and you don't have a real machine to compile binaries on. In this case a cross compiler can help. There are various different sourc…") |
|||
Line 1: | Line 1: | ||
− | + | A cross compiler is a compiler set up to run on one ISA but generate binaries which run on another. You may need one if you intend to simulate a system which uses a particular ISA, Alpha for instance, but don't have access to actual Alpha hardware. There are various sources for cross compilers, listed here in roughly recommended order: | |
# Some architectures have professionally build cross-compilers available from Code Sourcery. These are updated frequently and a good starting point: [http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3057 ARM], [http://www.codesourcery.com/sgpp/lite/mips/portal/subscription3130 MIPS] | # Some architectures have professionally build cross-compilers available from Code Sourcery. These are updated frequently and a good starting point: [http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3057 ARM], [http://www.codesourcery.com/sgpp/lite/mips/portal/subscription3130 MIPS] | ||
− | # You can build your own cross compiler using crosstools-ng: Download it from [http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool#download here] and follow the instructions on | + | # You can build your own cross compiler using crosstools-ng: Download it from [http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool#download here] and follow the instructions on that page. |
# We have some available on our [[Download]] page. | # We have some available on our [[Download]] page. |
Revision as of 17:06, 10 April 2011
A cross compiler is a compiler set up to run on one ISA but generate binaries which run on another. You may need one if you intend to simulate a system which uses a particular ISA, Alpha for instance, but don't have access to actual Alpha hardware. There are various sources for cross compilers, listed here in roughly recommended order:
- Some architectures have professionally build cross-compilers available from Code Sourcery. These are updated frequently and a good starting point: ARM, MIPS
- You can build your own cross compiler using crosstools-ng: Download it from here and follow the instructions on that page.
- We have some available on our Download page.