How to calculate ROM size.

shambhu
@shambhu-HsB4ZI โ€ข Oct 26, 2024

Hi,
can any one Please tell me how to calculate ROM size for the source code.

E.g:- Imagine my source code is 1000Lines of Code.
What shall be the ROM(Microcontroller) size for this code.:roll:

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • silverscorpion

    @silverscorpion-iJKtdQ • Dec 2, 2008

    Compile the code using any code compiler. The particular compiler depends on the micro controller you are using. For 8051 based controllers, you have keil or ride. Similarly for pic or avr, you have the respective developers.
    Compile the code and create a hex file of the code. The size of the hex file is the size of ROM required to run the program in that controller.

  • sauravgoswami

    @sauravgoswami-UAfTlI • Dec 2, 2008

    buddy,if your programme is not fitting in a ROM of a particular microcontroller you can use an external ROM,memory should not be your issue!!!!