[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Largish mob update from me

From: grischka
Subject: Re: [Tinycc-devel] Largish mob update from me
Date: Thu, 15 Dec 2016 23:29:31 +0100
User-agent: Thunderbird (Windows/20090812)

Michael Matz wrote:
* simple dead code optimization: in code like if (1) ...
    else {stuff};
don't emit anything for the else branch code (unless there's a different way to enter this code, e.g. via a label).

Just occurs to me that I've seen such before, including function
    static void remove_code(int t, int s);
and all.

From http://lists.gnu.org/archive/html/tinycc-devel/2013-09/msg00119.html

    Optimizations are enabled by using -O, but I neglected to add them to
    the help:
-Of - functions
        -Oj - jumps
        -Om - multiplications and pointer division
        -Or - registers
        -O -O2 -Ox - all optimizations
        -O1 - all but -Oj (i.e. -Ofmr)
        -Os - all but -Om (i.e. -Ofjr; also removes PE function alignment)
        -O0 - no optimizations (default)

The mentioned patch (based on release_0_9_26) is attached.

--- grischka

Attachment: optimize-386-from-Jason-Hood.zip
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]