Changes between Version 23 and Version 24 of ResumedC


Ignore:
Timestamp:
May 24, 2009, 4:04:47 PM (15 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ResumedC

    v23 v24  
    361361   ++array__p
    362362while ((*array_p) != 0);
     363/* or */
     364  // loop
     365   *matrix_ptr = -1 ;
     366   ++matrix_ptr ;
    363367}}}
    364368
     
    379383/* Now we have in every list_prts[element], a pointer to the equivalent list[element] array of structures */
    380384}}}
     385
     386 * When you are coding, if you use optimizations in your cflags, the compilation timing is a lot slower, could be nice to have an ''--coding'' option in your autotools code, or just set your CFLAGS to -O0
     387 * if you do a lot of calls to the same variable, set it as '''register''', but do not abuse of it or will not have any effect
     388 * if you use a for inside a for, try to use the smaller value ''(for less loop calls)'' for the parents and the bigger ones (more loops) for the childs
     389 * if we use a double for, we can resum them in a single one, since the counter loop needs the same number of loops than simply (for1 * for2)
     390 * use pointers instead of array's: since we can increment by one the place of the pointer under the matrix (array), we can use the pointer in order to set every value of the loop to it and increment it by one before to continue with the next loop
     391 * use functions that does all the job in a one time, like the '''memset''' function for this case that declares all the values of the matrix to a specified value
     392 * use macros
     393
    381394
    382395