Re: user-mode port 0.44-2.4.7

Richard Gooch (rgooch@ras.ucalgary.ca)
Mon, 23 Jul 2001 15:50:54 -0600


Andrea Arcangeli writes:
> cases if the code breaks in the actual usages of xtime it is likely that
> gcc is doing something stupid in terms of performance. but GCC if it
> wants to is allowed to compile this code:
>
> printf("%lx\n", xtime.tv_sec);
>
> as:
>
> unsigned long sec = xtime.tv_sec;
> if (sec != xtime.tv_sec)
> BUG();
> printf("%lx\n", sec);

And if it does that, it's stupid. Why on earth would GCC add extra
code to check if a value hasn't changed? I want it to produce
efficient code. What's next? Wrap checking?
printk ("You've just wrapped an integer: press [ENTER] to confirm,
[NT] to ignore ");

Regards,

Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
-
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/