This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: optimization by as
- From: pinskia at gmail dot com
- To: Yury Gribov <y dot gribov at samsung dot com>
- Cc: "Paul_Koning at Dell dot com" <Paul_Koning at Dell dot com>, "kumarvir dot pathak at gmail dot com" <kumarvir dot pathak at gmail dot com>, "Andrew dot Bennett at imgtec dot com" <Andrew dot Bennett at imgtec dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 17 Aug 2015 18:52:55 +0800
- Subject: Re: optimization by as
- Authentication-results: sourceware.org; auth=none
- References: <CAEDvCBS2RdGBwpirseB5Bne1_tOw=68O-5V9Q-S+AmZM7+vWog at mail dot gmail dot com> <0DA23CC379F5F945ACB41CF394B982772110532C at LEMAIL01 dot le dot imgtec dot org> <CAEDvCBS4m4UkNo+XcAPLZ7i9PYdV3XSp-XxGUvoEvHN9RWEnfQ at mail dot gmail dot com> <693C75B5-88BC-4051-BA12-57617578566B at dell dot com> <55D1A974 dot 9090507 at samsung dot com>
> On Aug 17, 2015, at 5:29 PM, Yury Gribov <y.gribov@samsung.com> wrote:
>
>> On 08/10/2015 05:53 PM, Paul_Koning@Dell.com wrote:
>>
>>> On Aug 10, 2015, at 2:41 AM, Virendra Kumar Pathak <kumarvir.pathak@gmail.com> wrote:
>>>
>>> Hi Andrew,
>>>
>>> Thanks for the reply.
>>>
>>> What other types of optimization can be handled by the assembler ?
>>> Are they capable of re-ordering the instructions ?
>>> For example inserting other instruction between two loads (on machine
>>> with one load unit) to avoid pipeline stall.
>>
>> Good assemblers donât do optimization; that is the job of the compiler (or, in the uncommon case of hand-written assembly language, the programmer). The MIPS assembler is an aberration, fortunately a rare one. Note that this âoptimizationâ machinery is turned off by recent compilers when they feed generated code to the assembler, because it gets in the way of the compiler doing a better job.
>
> AFAIR PS3 assembler was also optimizing (e.g. it could do register allocation and instruction scheduling).
There was a high level assembler for the cell processor. But it did not produce binaries from it but rather only produce assembly files which the standard assembler then assemble. I produced the testcase for it while I was at Sony.
Thanks,
Andrew
>
> -Y