Visible to Intel only — GUID: suc1436373086069
Ixiasoft
1.1. Arria 10 SoC Virtual Platform Features
1.2. Arria 10 SoC Virtual Platform Block Diagram
1.3. Recommended PC Requirements
1.4. Installing the Arria 10 SoC Virtual Platform
1.5. Installing and Booting a Pre-Built Linux Kernel
1.6. Debugging Linux Applications with the GNU Debugger (gdb)
1.7. Network Connectivity
1.8. Building a Custom Linux Kernel Using Angstrom
1.9. Appendix A: Modifying the parameters_Arria10.txt File
1.10. Appendix B: Memory and Interrupt Map
1.11. Revision History of Arria 10 SoC Virtual Platform User Guide
Visible to Intel only — GUID: suc1436373086069
Ixiasoft
1.6.3. Creating and Cross-Compiling an Application on Host
- Go to your home folder on the host and create a file named factorial.c that contains the following source code:
#include <stdio.h> int factorial(int n) { if (n == 0) return 1; return n * factorial (n - 1); } int main () { int i; int n; for (i = 0; i < 10; ++i) { n = factorial (i); printf ("factorial(%d) = %d\n", i, n); } return 0; }
- Cross-compile the factorial.c file by typing the following command:
arm-linux-gnueabihf-gcc factorial.c -ggdb -o factorial.out