From mboxrd@z Thu Jan 1 00:00:00 1970 From: DeLaGarza, Robert Date: Tue, 15 Apr 2003 01:53:57 -0700 Subject: [U-Boot-Users] DYNAMIC_CRC_TABLE ???? Message-ID: <01C302F1.E70452E0.robdlg@att.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, April 15, 2003 1:21 AM, Steven Scholz [SMTP:steven.scholz at 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).