EECS Instructional Account
2008-08-11 05:29:03 UTC
for proj4, whe we use memcpy, I had to malloc space for the byte array to
come from or to the main memory, so that means we must free these malloc
pointers right, is it okay to do it return before returning from
accessMemory function, the only reason I hesitate is since this cache
needs to keep its values and its state across accessMemory calss, I dont
want free to mess it up
basically, are we even supposed to use malloc and free in accordnace iwth
memcpy or anywhere in this proj4?
come from or to the main memory, so that means we must free these malloc
pointers right, is it okay to do it return before returning from
accessMemory function, the only reason I hesitate is since this cache
needs to keep its values and its state across accessMemory calss, I dont
want free to mess it up
basically, are we even supposed to use malloc and free in accordnace iwth
memcpy or anywhere in this proj4?