This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: initialized globals
- From: "Stone, Joshua I" <joshua dot i dot stone at intel dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>, <systemtap at sources dot redhat dot com>
- Date: Wed, 6 Sep 2006 11:38:41 -0700
- Subject: RE: initialized globals
On Wednesday, September 06, 2006 8:18 AM, Frank Ch. Eigler wrote:
> Hi -
>
> The "global" declaration syntax now permits compact initialization of
> variables. This should be useful for tapsets that transcribe macro
> values en masse:
>
> global MASK_1 = 1, MASK_2 = 2
>
> It only accepts numeric or string literals on the right hand side.
>
> - FChE
Nice!
The next steps I see for this:
* Allow global constants -- no need for read locks, and enables
optimizations like value propagation.
* Allow importing macro values as global constants -- avoid errors in
"transcribing".
Josh