Memory assignment

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
r.zaimovic
Posts: 33
Joined: 05 Oct 2010 23:19

Memory assignment

#1 Post by r.zaimovic » 03 Aug 2014 20:05

Hello MikroElektronika

I came across weird behavior in my program and after some examination found that one array occupied less memory than it should (please see attachment).

Can you explain me this please?

I am using 18F8722 and MikroC Pro 6.0.0
Attachments
me.JPG
me.JPG (54.6 KiB) Viewed 1596 times

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Re: Memory assignment

#2 Post by pwdixon » 05 Aug 2014 15:26

Funny how the length of Buffer1 would have taken the count to 0x03B6 which is the position for testvar1 and dow, it's almost like the table has mis-counted the position info somehow for both Buffer1 and testvar1 but then did manage to add 1 byte for dow.

Did the code work correctly? If it did then it could just be a table display update problem, if not then it's more serious. I guess you only looked because it failed to work correctly.

Can you post the source code definitions of these variables?

pwdixon
Posts: 1431
Joined: 13 Apr 2005 11:14
Location: UK

Re: Memory assignment

#3 Post by pwdixon » 05 Aug 2014 15:27

Also, and I'm pretty sure it's the first thing ME will say, but why are you running an old version of the compiler, can you try this on the latest version?

r.zaimovic
Posts: 33
Joined: 05 Oct 2010 23:19

Re: Memory assignment

#4 Post by r.zaimovic » 05 Aug 2014 22:00

Code did not work correctly. Same thing is happening with latest version of compiler. however problem is solved after deleting all files from project folder except source files. I save those files just in case and I can send it if me wish to take a look.

Post Reply

Return to “mikroC PRO for PIC General”