Week 7: Writing and Running a 64-Bit Program
Objective: To gain hands-on experience with writing and running a program on a 64-bit system.
Instructions:
1. Set up a development environment for 64-bit programming. This may involve installing a 64-bit operating system, a 64-bit compiler or programming environment, and any necessary libraries or dependencies. (Windows 10 & 11 already come in 64-bit architecture, research if you are planning to use another type of OS)
2. Write a simple program in a programming language of your choice (such as C, C++, Python, or Java) that performs a basic task, such as printing "Hello, world!" to the console, or use any API of your preference to help you write one. Use a language that you have some basic knowledge of.
3. Compile the program for 64-bit architecture. Depending on your programming environment, this may involve specifying a flag or option to generate 64-bit code. (This might imply compiling the program into an executable (.exe) file or installing the compiler on your computer. IDLE Python is easy to install, either on Windows or Mac machines. For Mac, you can use XCode as a compiler and write it in C++)
4. Run the program on a 64-bit system. Verify that it executes correctly and produces the expected output.
5. Experiment with different program configurations and settings to see how they affect program performance on a 64-bit system. For example, changing the optimization level, using different data types or data structures, or exploring parallelism and multithreading in your code. You can get some ideas about these examples online.
6. Optional: Use profiling tools or performance analysis tools to measure the performance of your program on a 64-bit system. Analyze the results and look for opportunities to optimize your code.