EnglishFrenchSpanish

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
    packfilemanager
    packfilemanager
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 2
    IPerf2
    IPerf2
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 3
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 4
    Matplotlib
    Matplotlib
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 5
    BotMan
    BotMan
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • 6
    Joplin
    Joplin
    Joplin is a free and open source
    note-taking and to-do application that
    can handle a large number of notes in
    Markdown format, organize them into
    notebooks and...
    Download Joplin
  • More »

Linux commands

Ad