- 3 A A Compiler Transforms C Source Code Into Binary Executable Code I Enumerate And Describe The Different Types Of In 1 (48.91 KiB) Viewed 55 times
3.a A compiler transforms C source code into binary executable code. i. Enumerate and describe the different types of in
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am
3.a A compiler transforms C source code into binary executable code. i. Enumerate and describe the different types of in
3.a A compiler transforms C source code into binary executable code. i. Enumerate and describe the different types of information found in an object file, generated by a compiler. (4 marks) ii. Discuss how the linker uses the information in the object file to generate the final executable binary. (3 marks) [7 marks] 3.b SCC will install a new building card access system. The control program will be written in C and we need your input in the design of some program data types. The resulting system will run on a 32-bit server architecture. i. Define an efficient user struct to store user information, containing: a unique integer user id, the name of the user (up to 87 characters), an integer timestamp of the last check-in and a boolean enter flag reflecting if the user entered (true) or exited (false) the door. (3 marks) ii. The department is planning to store user information in the memory of the card reader device and each card reader contains a 100 Kb memory module. Discuss how many records can be stored in a device. Explain your answer. (3 marks) Implement a method called toggle_enter(struct user *rec), which toggles the value of the enter flag using the pointer to a structure. (3 marks) [9 marks]