This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization by as


Hi Paul,

Thanks for the explanation.

On 10 August 2015 at 20:23,  <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.
>
>         paul
>



-- 
with regards,
Virendra Kumar Pathak


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]