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: 1 2011-12-07 16:47

>>8
My main targets are gcc, clang and maybe tcc at a later point -- both clang and tcc tend to emulate gcc's behaviour on things, so the only motive is really of aesthetic nature.

>>9-13,16
The main legitimate use of volatile nowadays is to prevent the compiler from removing asm sections or moving them around.

>>15,17
Fuck off you fucking shiteater.

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