Re: [ACPI] ACPI mentioned on lwn.net/kernel

From: Andrey Panin (pazke@orbita1.ru)
Date: Wed Jan 30 2002 - 03:00:25 EST


On Tue, Jan 29, 2002 at 02:14:32PM -0500, Mark Hahn wrote:
> > - what stop us from using -mregparm=3 gcc switch ?
>
> I dimly recall that it can generage bad code, perhaps only
> on old compilers.

Bad code, hmm ... slow code or wrong code ?
IIRC gcc 2.95.3 declared as minimal requirement for kernel compilation,
so may be it's not an issue anymore ?

>
> > - same with -Os -malign-loops=1 -malign-jumps=1 ?
>
> 2 is probably always the lowest you should go, and indeed,
> I think that's all the compiler permits.
>

gcc (at least 2.95.2) permits 1, but i didn't check generated code.

> > - any tool to measure perfomance gain/penalty of above ?
>
> lmbench. it has to be a microbenchmark to measure this sort of thing,
> though a sanity check (kernel compile) would also be useful.

Thanks, i'll test these issues this weekend.

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:01:14 EST