From patchwork Sun Sep 2 09:07:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 965014 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-484927-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=pfeifer.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="uMj7NojE"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4236gD5fmZz9s1x for ; Sun, 2 Sep 2018 19:07:20 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=ltq2Rw9Ku9mHB23EONiqcFl85/W1QhESGVeq6RUa1GTCsB4aOELQO 5CzXbjFsbExXidElq9aWX8Je0EGLYDDMnW16F7/KEzA/fzZFNEMO+1yQil998Z6q akEnK4E5q4/iW9LxShWGapafFkKP0Eaj336EIIXI3qJGtuExuVY89k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=YlJLz5lhrCc3BrQC9ZS1PBswVnU=; b=uMj7NojEjCG9xiQV+Yv4 5b1MQfOYEmu3aU06bh+gNALImEJ0YFHd5wGkstQ7GMwww6IAljqQ2eFJgRraVmvU ZtkV4MFOT7tfbbVi1+AA1HkPMZOTr5jEnWqoHJ6yUQ4U5NFu8aBsU+ve7achaDuv gK0FgaTxqzr3zuCOgqPq4RI= Received: (qmail 116011 invoked by alias); 2 Sep 2018 09:07:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 115998 invoked by uid 89); 2 Sep 2018 09:07:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=sake, picture, UD:test.o, test.o X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Sep 2018 09:07:07 +0000 Received: from ainaz.pair.com (localhost [127.0.0.1]) by ainaz.pair.com (Postfix) with ESMTP id 8CC7DB53ED3 for ; Sun, 2 Sep 2018 05:07:05 -0400 (EDT) Received: from anthias (vie-91-186-158-155.dsl.sil.at [91.186.158.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id 1D3F7B53EC7 for ; Sun, 2 Sep 2018 05:07:04 -0400 (EDT) Date: Sun, 2 Sep 2018 11:07:03 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org Subject: [wwwdocs] news/egcs-vcg.html goes HTML 5 (and looks better) Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Use CSS (aligned with our regular documentation) to highlight code snippets as opposed to direct encoding; don't
some blocks. This makes this page HTML 5 and actually also looks better. (We probably could simply remove those tables; not sure why Jeff added them back then, probably for the sake of coloring?) Committed. Gerald Index: news/egcs-vcg.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/news/egcs-vcg.html,v retrieving revision 1.14 diff -u -r1.14 egcs-vcg.html --- news/egcs-vcg.html 1 Sep 2018 23:42:07 -0000 1.14 +++ news/egcs-vcg.html 2 Sep 2018 09:03:35 -0000 @@ -35,10 +35,10 @@

First you should get an impression on what the program and the gcc changes do. Take the following small program.

- +
-
int
+	    
int
 gcd (int v1, int v2)
 {
   int l = v1 < v2 ? v1 : v2;
@@ -74,10 +74,10 @@
     should dump.  E.g., giving GCC the option -da dumps
     the files:

- +
-
# ../cc1 -O2 -o test.o test.c -da
+	  
# ../cc1 -O2 -o test.o test.c -da
  gcd main
 time in parse: 0.010000
 [... some lines removed ...]
@@ -93,10 +93,10 @@
     

These files are kind of hard to read if you are not used to RTL. Example? This is a part of test.c.lreg:

-
+
-
[... some lines removed ...]
+	  
[... some lines removed ...]
 Basic block 5: first insn 25, last 27.
 
 Registers live at start: 6 7 24 25
@@ -133,7 +133,6 @@
 	  
-

All the information about the basic blocks and the instructions and so on is available but not the the most human friendly @@ -143,10 +142,10 @@ If you add the option -dv to your commandline you get a handful of extra files:

- +
-
# ../cc1 -O2 -o test.o test.c -da -dv
+	  
# ../cc1 -O2 -o test.o test.c -da -dv
  gcd main
 time in parse: 0.010000
 [... some lines removed ...]
@@ -162,7 +161,7 @@
     

If you view these files using a suitable program, you'll get output similar to the following:

-
completely folded graph
+ completely folded graph

These are nodes representing all the functions in the file. If you expand the nodes you can get a picture like