Hi!

On Thu, Nov 30, 2017 at 10:55:04AM -0700, Martin Sebor wrote:
> >Or, for that matter, what "length" means?  Could be byte-length, sure.
> >But OTOH, for a RISC target it's always four, so why print it?  The GCC
> >developers surely meant cycle-length with that, nothing else makes sense.
> 
> Heh.  I thought it meant the length of the instruction in bytes,
> and it made perfect sense to me.  Sounds like I misinterpreted it.

It is:

"Lengths are measured in addressable storage units (bytes)."

(which is in the manual just fine; gccint of course, not the user manual).

> Which suggests that it should be mentioned in the manual (whatever
> label it ends up with).  With it documented (and the position on
> the line made clear), the length= or l= part could even be skipped
> altogether to save a few more bytes if that's important (I don't
> think it is in this case).

It is documented with -dp (I'll document it prints insn cost too).


Segher

Reply via email to