Skip to main content

Tool to determine what GCC flags -march=native would resolve into

Project description

About

resolve-march-native is a small command line tool to resolve -march=native into explicit GCC flags.

Example

$ resolve-march-native --vertical
-march=bonnell
-mno-cx16
--param l1-cache-line-size=64
--param l1-cache-size=24

Usage

$ COLUMNS=80 resolve-march-native --help
usage: resolve-march-native [-h] [--debug] [--gcc COMMAND] [--vertical]
                            [--keep-identical-mtune] [--keep-mno-flags]
                            [--add-recommended] [--version]

options:
  -h, --help            show this help message and exit
  --debug               enable debugging (default: disabled)
  --gcc COMMAND         gcc command (default: gcc)
  --vertical            produce vertical output (default: horizontal output)
  --keep-identical-mtune
                        keep implied -mtune=... despite architecture identical
                        to -march=... (default: stripped away)
  --keep-mno-flags      keep -mno-* parameters (default: (superfluous ones)
                        stripped away)
  --add-recommended, -a
                        add recommended flags (default: not added)
  --version             show program's version number and exit

resolve-march-native is software libre licensed under GPL v2 or later,
written by Sebastian Pipping.  Please report bugs to
https://github.com/hartwork/resolve-march-native/issues.  Thanks!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resolve-march-native-2.0.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

resolve_march_native-2.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file resolve-march-native-2.0.0.tar.gz.

File metadata

  • Download URL: resolve-march-native-2.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.14

File hashes

Hashes for resolve-march-native-2.0.0.tar.gz
Algorithm Hash digest
SHA256 262df20108546a1888528aa586c5998bc74e3e553ad98d4e7bdb79ee4d1aa094
MD5 b225888af15c800281cb26db472050d0
BLAKE2b-256 6318517ebbcafe40b0034ae51e0cf2105fa4ec3db743154cd4cdc383fcab677a

See more details on using hashes here.

File details

Details for the file resolve_march_native-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for resolve_march_native-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b78961782cda14c30b4cbe2a20178f580afb0477305545122097fc24fb699e07
MD5 f6f61b3fa8881f58eae6bd3983945357
BLAKE2b-256 e5749c4642ca64bb4f519775aaa6bb797852275312e1cf506345622f36c72621

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page