This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
How to inform as optimize lw v0, VAR with the specified register?
- From: Pan ruochen <panruochen at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 24 Jul 2009 10:27:57 +0800
- Subject: How to inform as optimize lw v0, VAR with the specified register?
Dear All,
The mips assembler will optimize the following instruction
lw v0, VAR
by producing two machine code
lui at, BASE
lw v0, OFFSET(at)
But if in the context of interrupts or exceptions, the at register
can't be used before being saved on the stack. So I wonder if
there is any option to inform as to optimize with a specified register
like k0/k1, which can be used directly without being saved.
PRC
Jul 24, 2009