Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

__volatile__ __asm__

Name: Anonymous 2011-12-06 21:57

volatile is a C keyword, and programmers know better than using asm as an identifier. Why do people insist on using double underscores around them, especially Linux kernel developers?

Also, why do people use things like __attribute__((aligned(n))) instead of defining a macro ALIGNED(n)?

Name: Anonymous 2011-12-07 11:47

>>6
Unless the code is intended to be compiled on other compilers, so that the macro might have another definition, I would not define such a macro. But I agree it looks better than the ridiculous __attribute__ syntax.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List