Jump to content
Sign in to follow this  
moyoyoyo

determining program size

Recommended Posts

I'm using a pic16f84 which has a 1k of program memory. I know that if I use a single code per line in assembler that equals 1 program memory block. At least thats what I've been told. My question then is, how do I know how much program memory I have used when I code and compile a program in c2c. Is there a way to determine this?

Share this post


Link to post
Share on other sites
Guest Pavel

The listing file .LST generated by assembler contains information about used and free program memory. Something like:

...
Program Memory Words Used:    43
Program Memory Words Free:   981
...

Regards,

Pavel

Share this post


Link to post
Share on other sites

The list file is all well and good, except when your program wont assemble because it's too big.  Would like to know how many words over the limit I am

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...