[U-Boot-Users] [MIPS] cpu/mips/cache.S: Introduce NESTED(), LEAF() and END()

Shinya Kuribayashi skuribay at ruby.dti.ne.jp
Tue Mar 18 01:40:49 CET 2008


Wolfgang Denk wrote:
> In message <47DE8444.3060603 at ruby.dti.ne.jp> you wrote:
>> These macros have been widely used by MIPS assemblers, and of course
>> make codes more readable and easily maintainable.
> 
> I have to admit  that  for  me  the  resulting  code  is  NOT  better
> readable.  Indead of just reading a single source file, I now have to
> look up a header file for a number of macros.

You need to look up a header file, true. But these macros are worth
doing so.

> Speaking for myself, I don't see an improvement.

as can be seen from macro definitions, they specify some more
information ecplicitly; alignment, type of symbols, stack frame info
which helps generating debug info.

These macros or their variants have been used in SGI or Algorithmics
early MIPS programming, PMON, YAMON and of course Linux. They are good
helper for MIPS assemblers, so I hope get them in.

  Shinya





More information about the U-Boot mailing list