Re: Endianness macros capitalization

2008-07-09 Thread Pavel Roskin
On Wed, 2008-07-09 at 14:50 +0200, Christian Franke wrote: > Overall size from inline asm would only be smaller if there is any > benefit from additional optimizations. Correct. Function calls use fixed registers for everything, but macros don't have to. > Result with the test script from my la

Re: a bug in read

2008-07-09 Thread Javier Martín
Couldn't this have been worked around changing while to do-while and refactoring the loop instead of creating a new variable, whose handling takes space? I'm not sure it can be done because I'm on vacation and reading mail through dialup access, but it might be worth a try. 2008/7/9, Pavel Roskin

Re: a bug in read

2008-07-09 Thread Vesa Jääskeläinen
Pavel Roskin wrote: By the way, read is not a part of grub-emu. We'll need to improve the build system to make such oversights less likely. We also need "exit" in grub-emu, as "reboot" doesn't sound right. I think there should be emu arch that provides architecture specific functionality. Th

Re: Endianness macros capitalization

2008-07-09 Thread Christian Franke
Pavel Roskin wrote: > On Tue, 2008-07-08 at 20:04 +0200, Christian Franke wrote: > > > With old gcc versions without the "rol" optimization, even the 16 > > bit swap should be a function: > > > > Or better yet, an asm statement. > > We should consider optimized assembly vs function call. Even