raspberry:cross-platform-compile:check-architecture
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| raspberry:cross-platform-compile:check-architecture [2026/09/04 07:51] – oscar | raspberry:cross-platform-compile:check-architecture [2026/09/04 07:55] (current) – oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== GCC and Linux Architectures | + | ===== Check Architecture & Distribution |
| ==== Check Architecture ==== | ==== Check Architecture ==== | ||
| To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | ||
| + | < | ||
| + | # dpkg --print-architecture | ||
| + | ------------------------- | ||
| + | armhf | ||
| + | </ | ||
| < | < | ||
| # getconf LONG_BIT | # getconf LONG_BIT | ||
| Line 12: | Line 17: | ||
| / | / | ||
| </ | </ | ||
| - | < | + | |
| - | # dpkg --print-architecture | + | |
| - | ------------------------- | + | |
| - | armhf | + | |
| - | </ | + | |
| ==== Required compilers ==== | ==== Required compilers ==== | ||
| GCC is also used to cross compile Linux applications. Applications can be compiled for 32-bit or 64-bit Linux systems. | GCC is also used to cross compile Linux applications. Applications can be compiled for 32-bit or 64-bit Linux systems. | ||
raspberry/cross-platform-compile/check-architecture.1788508305.txt.gz · Last modified: by oscar
