for relatively small projects, a single main file that includes all necessary code might be preferable to makefiles, headers and separate objects.
the more common way is to compile parts of the application separately into machine code objects, maintain header files with declarations for each object and then use a linker to connect the code in object files. this may save time in the development of big projects when most objects have previously been compiled and only a few have changed and need to be recompiled.
file_buffer = mmap(0, file_size, PROT_READ, MAP_SHARED, file_descript, 0); MD5((unsigned char*) file_buffer, file_size, result); munmap(file_buffer, file_size);
[1 2 3 1 2 3] vs [[1 2 3] [1 2 3]]
if not standard type arrays
easier to access because sub arrays can be iterated with a simple incremented index variable, without having to use the sub array size
can be immediately used with array operations on like sorting if they are build to work with subsequent array elements
one array and each sub array has to be allocated and later freed
the biggest slowdown i have experienced comes from having to be more specific: