Article View: gnu.gcc.help
Article #41892using gcc to optimize assembly code?
From: Johannes Waldmann
Date: Sun, 11 Feb 1996 00:00
Date: Sun, 11 Feb 1996 00:00
25 lines
1296 bytes
1296 bytes
Perhaps this is a bit naive, but here goes: Can I use gcc's back-end to optimize assembler programs? Possibly, assembler code could be transformed into RTL, then gcc could read that, and proceed as if it came from the expansion of a syntax tree. Are gcc's machine descriptions `invertible', i. e. can they be used to automatically generate .rtl from .s? Can I make the gcc back-end _start_ at a certain stage of the compilation? Something like: gcc -dr foo.c; gcc --start-with-r foo.c.rtl By the way, is such a foo.c.rtl fully self-contained? Has someone already done such things? How much work would it require? Would it be worth it? Thanks for any pointers, -- Johannes Waldmann, Fakult\"at f\"ur Mathematik und Informatik Jena, D-07740, Germany, phone (03641) 6 30793, mwj@rz.uni-jena.de Eben eben eben, ja, naja, tja, eben und jede Menge Praesens.
Technical Details
Message-ID:
<4fkpos$4nu@fsuj01.rz.uni-jena.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e3ec584f3f4b0cbe,start X-Google-Attributes: gid11318c,public From: mwj@rz.uni-jena.de (Johannes Waldmann) Subject: using gcc to optimize assembly code? Date: 1996/02/11 Message-ID: <4fkpos$4nu@fsuj01.rz.uni-jena.de> X-Deja-AN: 138915979 organization: Friedrich-Schiller-University Jena, Germany newsgroups: gnu.gcc.help