memory allocation

General discussion on mikroBasic PRO for 8051.
Post Reply
Author
Message
BarryP
Posts: 517
Joined: 02 Apr 2007 03:57
Location: New Zealand

memory allocation

#1 Post by BarryP » 10 Feb 2011 20:57

Memory allocation seems a bit odd.
Free BDATA of -18 ?
No Diff if I choose Small,Compact or Large
Arr2 starts in the BDATA area ?

Code: Select all

program test
    dim arr1 as Byte[32] 
    dim arr2 as byte[32] 
    dim arr3 as byte[32]  xdata
    dim arr4 as byte[32]  xdata
    dim arr5 as byte[32]  xdata
    dim arr6 as byte[32]  xdata
    dim arr7 as byte[32]  xdata
    dim arr8 as byte[32]  xdata
    dim x,y  as byte      bdata
main:
    x = 1
    y = 1
    arr1[0] = 1
    arr2[0] = 1
    arr3[0] = 1
    arr4[0] = 1
    arr5[0] = 1
    arr6[0] = 1
    arr7[0] = 1
  end.
mem allocation.JPG
mem allocation.JPG (27.68 KiB) Viewed 4849 times

Code: Select all

//----------------------------------------------
0x00AE      [70]    _main
//** Variables locations ** 
//ADDRESS    SIZE    VARIABLE
//----------------------------------------------
0x0000      [32]    _arr7
0x0000       [1]    R0
0x0001       [1]    R1
0x0002       [1]    R2
0x0003       [1]    R3
0x0004       [1]    R4
0x0005       [1]    R5
0x0006       [1]    R6
0x0007       [1]    R7
0x0020       [1]    _x
0x0020      [32]    _arr4
0x0021       [1]    _y
0x0022      [32]    _arr2
0x0040      [32]    _arr3
0x0042      [32]    _arr1
0x0060      [32]    _arr6
0x0080       [0]    P0_6_bit
0x0080       [0]    P0_7_bit
0x0080      [32]    _arr5
............. 


User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: memory allocation

#2 Post by filip » 11 Feb 2011 12:13

Hi,

Which MCU have you used ?

Regards,
Filip.

BarryP
Posts: 517
Joined: 02 Apr 2007 03:57
Location: New Zealand

Re: memory allocation

#3 Post by BarryP » 12 Feb 2011 09:46

Hi,
I'm using a C8051F020

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: memory allocation

#4 Post by filip » 14 Feb 2011 10:57

Hi,

I have reproduced this issue and reported it to our developers.
The will solve it as soon as possible.

I apologize for the inconvenience.

Regards,
Filip.

BarryP
Posts: 517
Joined: 02 Apr 2007 03:57
Location: New Zealand

Re: memory allocation

#5 Post by BarryP » 31 Jan 2013 04:26

So what is the workaround for this problem , your developers have had it for a while now ... ?

foravr
Posts: 130
Joined: 11 May 2009 19:34

Re: memory allocation

#6 Post by foravr » 28 Feb 2013 17:39

[quote="filip"]The will solve it as soon as possible.[/quote]
When that will be? I am 56. Will I still be alive?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: memory allocation

#7 Post by filip » 01 Mar 2013 09:19

Hi,

I'm afraid I don't know exactly when is this going to be fixed, but we are doing our best to do it as soon as possible.

Regards,
Filip.

foravr
Posts: 130
Joined: 11 May 2009 19:34

Re: memory allocation

#8 Post by foravr » 21 Mar 2013 21:30

When I am 57 I will ask you again, when I am 58.....
You take this so easily. Your behaviour concerning this compiler - i cannot understand.
We will see.

Post Reply

Return to “mikroBasic PRO for 8051 General”