Skip to content

Instantly share code, notes, and snippets.

@fm4dd
fm4dd / gcc compiler optimization for arm systems.md
Last active April 9, 2024 19:24
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

@tnj
tnj / vagrant-wrapper.sh
Last active October 15, 2015 08:20
Vagrant ssh-config cache wrapper for IntelliJ Vagrant plugin
#!/bin/sh
# This script is a quick hack/workaround for
# https://youtrack.jetbrains.com/issue/PY-12711
#
# Open settings and set this script as an alternative to `vagrant` command
# to minimize lag in Vagrant plugin of IntelliJ IDEA (RubyMine, etc.)
VAGRANT="/usr/bin/vagrant"
CACHE_BASE="/tmp/vagrant-ssh-config"
@farico
farico / gist:3938084
Created October 23, 2012 10:31
Linksniavimas LT vardu
<?php
/**
* Lietuviškų vardų linksniai.
*
* @author Maug Lee <mauglee@gmail.com>
* @copyright Copyleft (ↄ) 2011, Maug Lee
* @version 0.3
* @package Vardai
*/