RE: [U-Boot-Users] DYNAMIC_CRC_TABLE ????

15 Apr
2003
15 Apr
'03
10:53 a.m.
On Tuesday, April 15, 2003 1:21 AM, Steven Scholz [SMTP:steven.scholz@imc-berlin.de] wrote:
The file crc32.c contains some #ifdef DYNAMIC_CRC_TABLE .
What's the purpose of that? Are there any advantages of defining that?
That directive enables one to create the crc_table[256] array at run time, rather than compiling it into the code.
One advantage of doing this is that it reduces the size of the code; only the function used to generate the table needs to be stored in non-volatile memory, rather than the entire table (for a 32-bit long, the table will occupy 1 kilobyte of memory).
8058
Age (days ago)
8058
Last active (days ago)
0 comments
1 participants
participants (1)
-
DeLaGarza, Robert