This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Pass -mtune and -march options to assembler.
Mark Mitchell <firstname.lastname@example.org> 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!
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.
Other way - call assembler twice:
1. Fist call for generaty assembler listing.
2. Parsing that listing for get information about address
3. Make optimization.
4. Call assembler again for object or executable code
Professional hosting for everyone - http://www.host.ru