User Tools

Site Tools


raspberry:cross-platform-compile:check-architecture

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry:cross-platform-compile:check-architecture [2026/09/04 07:51] – oscarraspberry: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, use one of the following commands: To check if system is running a 32 (Raspberry) or 64 (X86) architecture, use one of the following commands:
 +<code>
 +# dpkg --print-architecture
 +-------------------------
 +armhf
 +</code>
 <code> <code>
 # getconf LONG_BIT # getconf LONG_BIT
Line 12: Line 17:
 /lib/systemd/systemd: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=1dc619f043235803cc3339a671c7f0821b733d93, for GNU/Linux 3.2.0, stripped /lib/systemd/systemd: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=1dc619f043235803cc3339a671c7f0821b733d93, for GNU/Linux 3.2.0, stripped
 </code> </code>
-<code> +
-# dpkg --print-architecture +
-------------------------- +
-armhf +
-</code>+
 ==== 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