This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]