[fpc-pascal] Trash variables (-gt) - Translation

Pierre Muller pierre at freepascal.org
Thu Jan 18 09:26:47 CET 2024



Le 18/01/2024 à 08:57, Michael Van Canneyt via fpc-pascal a écrit :
> 
> 
> On Thu, 18 Jan 2024, LacaK via fpc-pascal wrote:
> 
>> Hi *,
>> I am translating "Trash variables" (from English to Slovak), but I can
>> not find appropriate words.
>> That's why I want to describe it in more words.
>> Is this correct: "Initialize local variables with random values" ? Or
>> better suggestion?
> 
> That seems most correct to me.

   I think it is more something like 'specific pattern values' which are different depending on the number of 't'
(extracted from current trunk):
./globals.pas:126:       trashintvalues: array[0..nroftrashvalues-1] of int64 = ($5555555555555555,$AAAAAAAAAAAAAAAA,$EFEFEFEFEFEFEFEF,0);

Thus  -gt      will use $5555555555555555 pattern,
       -gtt     will use $AAAAAAAAAAAAAAAA pattern,
       -gttt    will use $EFEFEFEFEFEFEFEF pattern,
       -gtttt   will use $0000000000000000 pattern
for 'trashing' of local variables.

Pierre


More information about the fpc-pascal mailing list