---
title: "What is stack and can we use ROM as stack?"  
description: "What is stack and can we use ROM as stack?"  
author: "Royce Roy"  
published: 2017-11-13  
canonical: https://answers.mindstick.com/qa/30407/what-is-stack-and-can-we-use-rom-as-stack  
category: "technology"  
tags: ["information technology"]  
reading_time: 1 minute  

---

# What is stack and can we use ROM as stack?

What is [stack](https://www.mindstick.com/blog/301746/why-is-stack-overflow-so-important-for-developers) and can we use [ROM](https://www.mindstick.com/forum/157710/what-is-the-difference-between-ram-and-rom-in-a-microprocessor) as stack?

## Answers

### Answer by Samuel Fernandes

ROM cannot be used as a stack, as it is not possible to write on ROM. And Stack is state as,its a portion of RAM used for saving the content of the program counter and general purpose registers.


---

Original Source: https://answers.mindstick.com/qa/30407/what-is-stack-and-can-we-use-rom-as-stack

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
