Skip to content
CS-603 · Compiler Design/Unsolved PYQ Paper

CS-603 Compiler Design - Jun 2025 Question Paper

Under each question, How to answer lists the points an answer should cover, outlined by CampusPrep from the syllabus. Check the details against your textbook.

  1. 7 Marks
    aExplain Flynn's classification of parallel computers with examples. How does it impact system performance evaluation?
    How to answer
    • Define SISD, SIMD, MISD, MIMD with examples
    • Explain control and data parallelism basis
    • Discuss impact on performance metrics and benchmarking
    • Relate classification to modern parallel systems
  2. 7 Marks
    bCompare multiprocessors and multicomputers in terms of architecture and use cases.
    How to answer
    • Define multiprocessor shared-memory architecture
    • Define multicomputer distributed-memory architecture
    • Compare on coupling, memory, communication, scalability
    • Give typical use cases for each
  3. 7 Marks
    aDifferentiate between CISC and RISC architectures. Why is RISC preferred in modern high-performance computing?
    How to answer
    • List differences: instruction set, complexity, cycles per instruction, addressing modes
    • Compare pipelining, compiler and power aspects
    • Explain RISC advantages for pipelining and parallelism
    • Justify RISC preference in high-performance computing
  4. 7 Marks
    bA memory system has a 90% cache hit rate with 5 ns access time. Main memory access takes 100 ns. Calculate effective access time.
    How to answer
    • State effective access time formula: $T_{eff} = H \times T_c + (1-H) \times T_m$
    • Substitute hit rate 0.9, cache 5 ns, main memory 100 ns
    • Compute weighted average
  5. 7 Marks
    aWhat are Pipeline hazards? Discuss techniques to minimize control hazards in instruction pipelining.
    How to answer
    • Define structural, data and control hazards
    • Explain branch penalty in pipelining
    • Discuss branch prediction, delayed branch, prefetching
    • Discuss flushing and speculative execution
  6. 7 Marks
    bExplain Tomasulo's algorithm and its role in dynamic instruction scheduling.
    How to answer
    • Outline reservation stations, CDB and register renaming
    • Explain issue, execute, write-result steps
    • Show handling of WAR, WAW and RAW hazards
    • State role in out-of-order dynamic scheduling
  7. 7 Marks
    aCompare snoopy and directory-based cache coherence protocols. Which is more scalable for large systems?
    How to answer
    • Describe snoopy bus-based coherence and directory-based coherence
    • Compare broadcast vs point-to-point, scalability, overhead
    • Explain state storage and traffic differences
    • Conclude directory-based is more scalable for large systems
  8. 7 Marks
    bHow do virtual channels prevent deadlock in multicomputer networks?
    How to answer
    • Define deadlock in multicomputer networks
    • Explain virtual channels and resource separation
    • Show how breaking cyclic dependencies prevents deadlock
    • Give example of adaptive routing with virtual channels
  9. 7 Marks
    aContrast shared-variable and message-passing parallel programming models with examples.
    How to answer
    • Define shared-variable shared-memory model with example
    • Define message-passing model with example
    • Contrast synchronization, communication and scalability
    • Give programming examples like OpenMP vs MPI
  10. 7 Marks
    bHow do parallel compilers optimize code for concurrent execution?
    How to answer
    • List dependence analysis and parallelization steps
    • Explain vectorization, scheduling and synchronization insertion
    • Discuss load balancing and communication optimization
    • Mention examples of concurrent execution support
  11. 14 Marks
    Numerical: A 5-stage pipeline has clock cycles of 2 ns, 3 ns, 4 ns, 3 ns, and 2 ns. Calculate speedup for 100 instructions over non-pipelined execution.
    How to answer
    • Identify pipeline cycle time as max stage delay 4 ns
    • Compute non-pipelined time for 100 instructions
    • Compute pipelined time: $(k+n-1) \times T_p$
    • Calculate speedup ratio
  12. 7 Marks
    aExplain SIMD organization and its applications in vector processing.
    How to answer
    • Describe SIMD organization with control and processing elements
    • Explain lock-step vector operations
    • List applications in image, signal and scientific processing
    • Mention examples like GPU and vector processors
  13. 7 Marks
    bDiscuss challenges in multithreading and how multiple-context processors address them.
    How to answer
    • List multithreading challenges: synchronization, race, overhead
    • Explain context switching and resource contention
    • Describe multiple-context processor support
    • Show improved utilization and latency hiding
  14. 14 Marks
    Numerical: A superscalar processor executes 4 instructions/cycle. If 20% instructions are dependent, what is the maximum speedup?
    How to answer
    • Note issue width 4 instructions per cycle
    • Account for 20% dependent instructions limiting parallelism
    • Apply Amdahl-type or effective IPC calculation
    • Compute maximum speedup value
Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in