---
title: "Samarth Sharma (@samartho4) | Hashnode"
description: "Working to be Insight Developer. Read the latest articles by Samarth Sharma on Hashnode."
url: "https://hashnode.com/@samartho4"
---

@samartho4

# Samarth Sharma

@samartho4 · North York · Joined September 2024

Working to be Insight Developer

### [Project - Stage 3: into the Clone Pruning](https://software-portability-and-optimization.hashnode.dev/project-stage-3-into-the-clone-pruning?utm_source=hashnode&utm_medium=feed)

Introduction Building on my progress from Stages I and II, this final phase of my SPO600 project focused on enhancing the GCC compiler pass to handle multiple sets of cloned functions. This stage required significant debugging and troubleshooting as ...

5 min read · [software-portability-and-optimization.hashnode.dev](https://software-portability-and-optimization.hashnode.dev/project-stage-3-into-the-clone-pruning?utm_source=hashnode&utm_medium=feed)

[Apr 18, 2025](https://hashnode.com/posts/project-stage-3-into-the-clone-pruning/6802b9376ab071e5a9bd8d35)

### [Project - Stage 3: Implementation](https://software-portability-and-optimization.hashnode.dev/project-stage-3-implementation?utm_source=hashnode&utm_medium=feed)

Enhanced Clone Detection My implementation in tree-cloneprune.cc now uses more sophisticated methods to identify and analyze multiple sets of cloned functions. Key improvements include: Using regex pattern matching to identify function variants with...

3 min read · [software-portability-and-optimization.hashnode.dev](https://software-portability-and-optimization.hashnode.dev/project-stage-3-implementation?utm_source=hashnode&utm_medium=feed)

[Apr 17, 2025](https://hashnode.com/posts/project-stage-3-implementation/680188c13b10b44e5d686a4c)

### [Project - Stage 3 : Initialised](https://software-portability-and-optimization.hashnode.dev/project-stage-3-initialised?utm_source=hashnode&utm_medium=feed)

Throughout this semester, We've been working on an enhancement to the GCC Compiler(reference). We want to aim for implementing Automatic Function Multi-Versioning (AFMV) cloning. Essentially, AFMV cloning allows a compiler to automatically generate o...

1 min read · [software-portability-and-optimization.hashnode.dev](https://software-portability-and-optimization.hashnode.dev/project-stage-3-initialised?utm_source=hashnode&utm_medium=feed)

[Apr 14, 2025](https://hashnode.com/posts/project-stage-3-initialised/67fc6321920fec6f94f082da)

### [Substantially the same: Project Stage 2](https://software-portability-and-optimization.hashnode.dev/substantially-the-same-project-stage-2?utm_source=hashnode&utm_medium=feed)

To wrap up for Stage 2 of my SPO600 project, I implemented a GCC compiler pass that analyzes function clones and determines if they should be pruned. This pass identifies when multiple versions of a function are substantially similar, allowing for po...

3 min read · [software-portability-and-optimization.hashnode.dev](https://software-portability-and-optimization.hashnode.dev/substantially-the-same-project-stage-2?utm_source=hashnode&utm_medium=feed)

[Apr 7, 2025](https://hashnode.com/posts/substantially-the-same-project-stage-2/67f388d8c6be28edd55acd75)

### [Project Stage 2](https://software-portability-and-optimization.hashnode.dev/project-stage-2?utm_source=hashnode&utm_medium=feed)

From 2 000 lines of red to a clean GCC build 🚦 “Nothing teaches you GCC internals faster than fixing your own pass.” 1 Context Goal: create a GIMPLE‑level pass that prints NOPRUNE: for the first function with a unique structure and PRUNE: for...

2 min read · [software-portability-and-optimization.hashnode.dev](https://software-portability-and-optimization.hashnode.dev/project-stage-2?utm_source=hashnode&utm_medium=feed)

[Apr 7, 2025](https://hashnode.com/posts/project-stage-2/67f34b4bce43cc3631bbd83c)
