beremiz

a66062a205ae
Build by default with optimization level -O2 for GCC

before -O0 was used by default, that caused pretty bad performance.

Amd64, i6700k, 4200MHz, GNU/Linux (non-RT kernel), gcc 7.2.0

-------------------------------------
Optimization | EN/ENO |no EN/ENO |
-------------------------------------
default | 11 | 9.5 |
-O3 | 3.9 | 5.2 |
-O2 | 4 | 4.8 |
-Os | 4.1 | 3.5 |
-Ofast | 3.9 | 5.2 |
-------------------------------------

ARM, BBB Cortex-A8, 600Mhz, GNU/Linux, gcc 4.6.3

-------------------------------------
Optimization | EN/ENO |no EN/ENO |
-------------------------------------
default | 273 | 226 |
-O3 | 141.8 | 106.2 |
-O2 | 142 | 107 |
-Os | 152.5 | 112.2 |
-Ofast | 141.7 | 106.2 |
-------------------------------------

For embedded systems with size constaints (like Cortex-Mx, AVR and so
on) I usually use -Os. It gets pretty good results. For
GNU/Linux-based systems -O2 is usually a good choice, as you see the
test results.
<?xml version='1.0' encoding='utf-8'?>
<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Beremiz" productName="Beremiz" productVersion="1" creationDateTime="2015-02-05T11:44:55" contentDescription=" &#10;&#10;"/>
<contentHeader name="WAMPTest" modificationDateTime="2015-02-18T23:59:50">
<coordinateInfo>
<fbd>
<scaling x="0" y="0"/>
</fbd>
<ld>
<scaling x="0" y="0"/>
</ld>
<sfc>
<scaling x="0" y="0"/>
</sfc>
</coordinateInfo>
</contentHeader>
<types>
<dataTypes/>
<pous>
<pou name="program0" pouType="program">
<interface>
<localVars>
<variable name="LocalVar0">
<type>
<DINT/>
</type>
</variable>
</localVars>
<externalVars>
<variable name="PyVar0">
<type>
<DINT/>
</type>
</variable>
<variable name="PyVar1">
<type>
<DINT/>
</type>
</variable>
</externalVars>
</interface>
<body>
<FBD>
<inVariable localId="1" executionOrderId="0" height="25" width="55" negated="false">
<position x="144" y="70"/>
<connectionPointOut>
<relPosition x="55" y="12"/>
</connectionPointOut>
<expression>PyVar0</expression>
</inVariable>
<block localId="3" typeName="ADD" executionOrderId="0" height="60" width="65">
<position x="245" y="52"/>
<inputVariables>
<variable formalParameter="IN1">
<connectionPointIn>
<relPosition x="0" y="30"/>
<connection refLocalId="1">
<position x="245" y="82"/>
<position x="199" y="82"/>
</connection>
</connectionPointIn>
</variable>
<variable formalParameter="IN2">
<connectionPointIn>
<relPosition x="0" y="50"/>
<connection refLocalId="4">
<position x="245" y="102"/>
<position x="228" y="102"/>
<position x="228" y="113"/>
<position x="198" y="113"/>
</connection>
</connectionPointIn>
</variable>
</inputVariables>
<inOutVariables/>
<outputVariables>
<variable formalParameter="OUT">
<connectionPointOut>
<relPosition x="65" y="30"/>
</connectionPointOut>
</variable>
</outputVariables>
</block>
<inVariable localId="4" executionOrderId="0" height="25" width="73" negated="false">
<position x="125" y="101"/>
<connectionPointOut>
<relPosition x="73" y="12"/>
</connectionPointOut>
<expression>LocalVar0</expression>
</inVariable>
<outVariable localId="2" executionOrderId="0" height="25" width="55" negated="false">
<position x="344" y="70"/>
<connectionPointIn>
<relPosition x="0" y="12"/>
<connection refLocalId="3" formalParameter="OUT">
<position x="344" y="82"/>
<position x="310" y="82"/>
</connection>
</connectionPointIn>
<expression>PyVar1</expression>
</outVariable>
</FBD>
</body>
</pou>
</pous>
</types>
<instances>
<configurations>
<configuration name="config">
<resource name="resource1">
<task name="Task0" priority="0" interval="T#100ms">
<pouInstance name="Instance0" typeName="program0"/>
</task>
</resource>
</configuration>
</configurations>
</instances>
</project>