This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Pass -mtune and -march options to assembler.


Valdimir Volynsky wrote:
>  Mark Mitchell <mark@codesourcery.com> wrote:
> 
>> However you are solving this in the assembler, you can also solve it
>> in the compiler.  After all, the assembler has no information which
>> the compiler does not provide to it!

  (Actually the assembler contains a huge amount of explicit statically
predefined information that the compiler doesn't provide to it, such as the
relation between assembler opcodes and hex output bytes.)

>> There are two parts to that recommendation: knowing what
>> opcodes start with 0xf7, and knowing the alignment of
>> instructions.  Both of those things are just as knowable in
>> the compiler as they are in the assembler.
> 
> But this information are knowable to assembler already, and not available
> in current GCC version. Do you suggest to add it to GCC? In this case
> assembler not required at all.

  This is starting to sound much more like a job for a linker relaxation to me.

    cheers,
      DaveK


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