EnglishFrenchSpanish

Ad


OnWorks favicon

copt - Online in the Cloud

Run copt in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command copt that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


copt - peephole optimizer

SYSNOPIS


copt file ...

DESCRIPTION


copt is a general-purpose peephole optimizer. It reads code from its standard input and
writes an improved version to its standard output. copy reads the named files for its
optimizations, which are encoded as follows:

<pattern for input line 1>
<pattern for input line 2>
...
<pattern for input line n>
=
<pattern for output line 1>
<pattern for output line 2>
...
<pattern for output line m>
<blank line>

Pattern matching uses literal string comparison, with one exception: ``%%'' matches the
``%'' character, and ``%'' followed by a digit matches everything up to the next
occurrence of the next pattern character, though all occurrences of %n must denote the
same string. For example, the pattern ``%1=%1.'' matches exactly those strings that begin
with a string X, followed by a ``='' (the first), followed by a second occurrence of X,
followed by a period. In this way, the input/output pattern

mov $%1,r%2
mov *r%2,r%2
=
mov %1,r%2

commands copt to replace runs like

mov $_a,r3
mov *r3,r3

with

mov _a,r3

Note that a tab or newline can terminate a %n variable.

copt compares each run of input patterns with the current input instruction and its
predecessors. If no match is found, it advances to the next input instruction and tries
again. Otherwise, it replaces the input instructions with the corresponding output
patterns, pattern variables instantiated,and resumes its search with the first instruction
of the replacement. copt matches input patterns in reverse order to cascade optimizations
without backing up.

Use copt online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad