A question about writing big arrays of static variables
Posted: 26 Oct 2007, 05:16
Strelka has many big arrays
This program does not include a program to calculate the arrays but
only values of many 64 bit numbers that are xored by a single random number in the beginning of the program and never being changed later.
I understood the meaning of many of these arrays and
wrote a program to calculate them and my problem is how to use this program without strelka to rewrite the arrays as const without spending much time.
I want to use LineMask that is calculated by a special function that I wrote in order to write an array of 4*64*64 64 bits numbers and I want to do it for many arrays.
That array that has 4*64*64 numbers has many lines of code and start with:
static unsigned __int64 LineMask[4][64][64] = {
{{0x2AE711874E578EAD,
How much time do you need to do it and what is the best way to do it.
Is the best way to write a program that simply write the content of the array into a file and later use copy and paste or there is a better way.
Note that with small array of constants or array of small constants that were written as integers my solution to this problem was simple and I simply wrote a program to print the constants into the screen by printf and later copied the data from the screen but with big constants and big arrays this solution is not possible because the screen does not show me the first numbers and running the program many times is not efficient.
I can write a program that writes the content of arrays to a file but I see no reason to do it in case that there is an available program that does it
and I think that if you want to translate many arrays to arrays of constants after you have some program to generate the numbers then it is not efficient to run different program for every array.
Uri
This program does not include a program to calculate the arrays but
only values of many 64 bit numbers that are xored by a single random number in the beginning of the program and never being changed later.
I understood the meaning of many of these arrays and
wrote a program to calculate them and my problem is how to use this program without strelka to rewrite the arrays as const without spending much time.
I want to use LineMask that is calculated by a special function that I wrote in order to write an array of 4*64*64 64 bits numbers and I want to do it for many arrays.
That array that has 4*64*64 numbers has many lines of code and start with:
static unsigned __int64 LineMask[4][64][64] = {
{{0x2AE711874E578EAD,
How much time do you need to do it and what is the best way to do it.
Is the best way to write a program that simply write the content of the array into a file and later use copy and paste or there is a better way.
Note that with small array of constants or array of small constants that were written as integers my solution to this problem was simple and I simply wrote a program to print the constants into the screen by printf and later copied the data from the screen but with big constants and big arrays this solution is not possible because the screen does not show me the first numbers and running the program many times is not efficient.
I can write a program that writes the content of arrays to a file but I see no reason to do it in case that there is an available program that does it
and I think that if you want to translate many arrays to arrays of constants after you have some program to generate the numbers then it is not efficient to run different program for every array.
Uri