[chbot] C question: variables in GCC

Volker Kuhlmann list57 at top.geek.nz
Thu Jun 1 23:03:01 BST 2023


> I am pretty sure that C99 normally only supports initialized
> variables (with associated value) and uninitialized variables (which
> are set to 0).
> Is it possible to declare storage in C that isn’t touched by the
> associated startup code ?

What happens when declaring a global uninitialised variable volatile?
The point of volatile is that the location is accessed exactly when you
say so.

Volker

-- 
Volker Kuhlmann
http://volker.top.geek.nz/	Please do not CC list postings to me.



More information about the Chchrobotics mailing list