MirOS Manual: arch(1), machine(1)

ARCH(1)                      BSD Reference Manual                      ARCH(1)


     arch, machine - print architecture type


     arch [-ks]
     machine [-a]


     The arch and machine commands display the machine's architecture in
     slightly different ways. arch by default displays the application archi-
     tecture, defined by both the operating system and the instruction set ar-
     chitecture, while machine displays the kernel architecture (without the
     operating system part). Note that both commands output the target archi-
     tecture as opposed to uname(1) which describes the host. This is useful
     for dynamic discovery of the target architecture in build or configura-
     tion scripts needing to work in cross-compilation environments.

     The options for arch are as follows:

     -k      Display the kernel architecture instead of application architec-

     -s      Display the chosen architecture in a short form, i.e., without
             the operating system prefixed.

     The options for machine are as follows:

     -a      Display the application architecture instead of the kernel archi-



MirOS BSD #10-current           June 22, 1996                                1

Generated on 2017-04-03 16:26:17 by $MirOS: src/scripts/roff2htm,v 1.88 2017/01/29 00:51:06 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2017 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.