Sale!

CSC 461 PA8 Load in Place (Grad Only) solved

Original price was: $30.00.Current price is: $25.00. $21.25

Category:

Description

5/5 - (2 votes)

• Submit program to perforce in your student directory
o Sub directory called:
 /PA8/…
o Fill out your PA8 Submission Report.pdf
 Place it in the same directory as your solution
 Enter the final Changelist number of your submission
 Write up a quick discussion in the report
• What you learned from this assignment so far
• Learn

o File Basics
 fopen, fread, fclose, fseek,
 (hopefully it’s a review)
o Load a dynamic memory in-place file for fast reload and run
Section 1: Create your contiguous memory
• Create your contiguous memory footprint
• Needs to be:
o in one contiguous memory footprint
o offsets instead of pointers
o See sample print out
• append to existing output file

Section 2: Write Contiguous memory footprint to a new binary file
(No credit- if Section 1 isn’t 100% complete)
• Write Contiguous memory footprint to a new binary file
o add any extra data necessary for pointer fix-up
• Load this data from a binary file into ONE memory block
o perform pointer fix-up
• print the linked list data
o your pointers will be pointing to address within block
o data will be the same as before, everything has to come from binary file
o append to existing output file
Game Optimization
Programming Assignment
1 CSC 461
Optimized C++ PA -8

General:
• Write all programs in cross-platform C or C++.
o Optimize for execution speed and robustness.
• Create a programming file for each problem, for example
o Student directory
 /PA8/…
o Make sure that each problem can be compiled and run through the checked in solution
• Do all your work by yourself
o Feel free to talk with others about setup, version control, ideas
o But do not copy your friend’s code.
 Please don’t – I can tell with my difference tools
o Feel free to share ideas
• Check in the problems multiple times, at least 3 times per problem
o Have reasonable check-in comments
o Seriously, I’m checking

• Make sure that your program compiles and runs
o Warning level 4, some times that is not possible due to MS headers…
o Your code should be squeaky clean.
• We are using Perforce
o You should have received the document describing how to login.
 Please look at the documentation and videos under the reference directory
o Submit program to perforce in your student directory
 Sub directory called: /PA8/…
• As described above
o All your code must compile from perforce with no modifications.
 Otherwise it’s a 0, no exceptions
Simple check list to make sure that everything is checked in correctly
• Did you do all Section 1?
• Do they compile and run without any errors?
• Warning level 4 free (or as close as you can go)?
• Submitted it into /PA8 directory?
• Can you delete you local drive, regrab the /PA8 directory?
o Is all the code there, Does it compile?
• Did you check in your text files?
Game Optimization
Programming Assignment
2 CSC 461
Optimized C++ PA -8

Most assignments will have hints in a section like this.
• Practice your file system stuff
• Create several example solutions with different file patterns – fopen, fread, fwrite
• Make sure your are using the binary operation and not the text mode.
o ‘wt’ – write text
o ‘wb’ – write binary
o Same for read

• Look up file read / write examples from the internet or out of the book
o I like the fopen, fwrite way of doing stuff as opposed to the streams.
o Either way works, see what is easier for you.
• Use the FORUMs
o This is much harder than the last assignment.
o See me during office hours.
o Read, explore, ask questions in class
Game Optimization
Programming Assignment
3 CSC 461