Shylock Hg

My own blog powered by Hugo and Ivy.

Modifier Of C Language

2018-05-19


const limit modify to a variable in compiler level.

volatile limit cache access of variable in cpu instruction level.

auto default for stack variable means auto-release.

static store local variable to static memory area, or limit global variable access.

register alloc local variable to cpu register.

extern declare global symbol be accessible by external(default for function).