[GEM Development] AES - the Global array

John Elliott jce at seasip.info
Sun Jan 28 11:01:43 PST 2024


You can declare it as extern:

extern UWORD global[G_SIZE];

There are also some macros that may help access particular fields in 
ppdgbind.h:


#define AP_VERSION global[0]
#define AP_COUNT global[1]
#define AP_ID global[2]
#define AP_LOPRIVATE global[3]
#define AP_HIPRIVATE global[4]
#define AP_LOPNAME global[5]            /* long ptr. to tree base in rsc*/
#define AP_HIPNAME global[6]
etc.

Cyprian Konador wrote:
> Hi Team,
>
> I see there https://www.seasip.info/Gem/aes.html that "appl_init" 
> should fill "global" array with some informations like "version", 
> "max_tasks" or "nplanes". But I have no idea how to access that table.
> Any hints on how to access that array under Pacific C.
>
> Many thanks
>
> Regard
> Cyprian
>
>
> _______________________________________________
> gem-dev mailing list
> gem-dev at simpits.org
> http://www.simpits.org/mailman/listinfo/gem-dev



More information about the gem-dev mailing list