Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

Project description


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


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


$ resolve-march-native --help
usage: resolve-march-native [-h] [--debug] [--gcc COMMAND] [--vertical]
                            [--keep-identical-mtune] [--keep-mno-flags]
                            [--keep-default-params] [--add-recommended]

optional arguments:
  -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 implied -mtune=... despite architecture identical
                        to -march=... (default: stripped away)
  --keep-mno-flags      keep -mno-* parameters (default: (superfluous ones)
                        stripped away)
                        keep --param ... with values matching defaults
                        (default: 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  Thanks!

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
resolve-march-native-0.9.2.tar.gz (8.9 kB) Copy SHA256 hash SHA256 Source None Nov 17, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page