Re: Using inline asm on the i386

Steven N. Hirsch (shirsch@ibm.net)
Sun, 19 Apr 1998 10:15:48 -0400 (EDT)


On Sun, 19 Apr 1998, Colin Plumb wrote:

(snip)

> I hope this has been of use to some folks. GCC's inline asm features
> are really wonderful, since you can use them with full optimization
> and you don't have to outsmart the compiler, but this is because the
> compiler really understands what's going on.
>
> This has the unfortunate side effect that you have to learn how to
> explain to the compiler what's going on. But it's worth it, really!

Colin,

This is one of the most helpful, concise explanations of gnu-ish inline
asm I've ever seen. If this sort of hands-on explanation existed for
other low-level details of the Linux kernel, many more folks would be
encouraged to plunge their feet into the bits.

Understand that I'm not belittling the coding efforts of the primary
kernel maintainers, but as a person with limited hacking time I often find
myself stalled on details of this nature. Understanding the
architecture-specific aspects of the kernel is difficult enough without
the added overhead of dense (and sometimes overly vague) tool
documentation.

Thanks again.

Steve

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu