Re: [PATCH] RISC-V: Add and document the "-mno-relax" option

2018-03-06 Thread Jim Wilson
On Tue, Mar 6, 2018 at 5:00 PM, Palmer Dabbelt wrote: > Thanks. How does this look? It looks OK. It still doesn't mention compression, but that is documented other places so it isn't a big deal. Jim

Re: [PATCH] RISC-V: Add and document the "-mno-relax" option

2018-03-06 Thread Palmer Dabbelt
On Fri, 02 Mar 2018 16:27:41 PST (-0800), Jim Wilson wrote: On 03/01/2018 01:26 PM, Palmer Dabbelt wrote: +@item -mrelax +@itemx -mno-relax +Take advantage of linker relaxations to reduce the number of instructions +required to materalize symbol addresses. materalize->materialize This is not

Re: [PATCH] RISC-V: Add and document the "-mno-relax" option

2018-03-02 Thread Jim Wilson
On 03/01/2018 01:26 PM, Palmer Dabbelt wrote: +@item -mrelax +@itemx -mno-relax +Take advantage of linker relaxations to reduce the number of instructions +required to materalize symbol addresses. materalize->materialize This is not just number of instructions, it is also code size, since lin

[PATCH] RISC-V: Add and document the "-mno-relax" option

2018-03-01 Thread Palmer Dabbelt
From: Palmer Dabbelt RISC-V relies on aggressive linker relaxation to get good code size. As a result no text symbol addresses can be known until link time, which means that alignment must be handled during the link. This alignment pass is essentially just another linker relaxation, so this has