On 10/10/14 16:40, kbaser wrote:

I'd like to share my problem with you. I have a JAL code to run in
18F4620 and it uses :
Code   :1522/65536
Data:126/3840
Hardware Stack : 5/31
Software Stack :3714

And I want to compile&run it on a 16F887 where the capacity :
Code   :xxx/8192
Data:xxx/352
Hardware Stack : xxx/8
Software Stack :96
where obviously Code,Data,HW stack and SW stack of the code is small
enough for a 16F887.
But it gives "out of data space" error and doesn't compile.

Which compiler version, which Jallib version? I agree that 'out of data space' is unexpected, but without your source code it is difficult to analyse the problem.

Q.1 :Why it  doesn't compile ?
Q.2 : Where are HW stack/SW stack/Data in 18F4620 Datasheet, it only
says there :
*Program Memory/Flash(bytes) : 64K
*Data Memory / SRAM(bytes) : 3968 (not 3840 as compiler says)
*Data Memory / EEPROM(bytes) : 1024

The current version of JalV2 doesn't use 'shared' memory for variables. Therefore the device files hide it for the compiler. For the 18f4620 this is 128 bytes which you are 'missing'. See the documentation (devicefiles.html) for more details.

Regards, Rob.

--
R. Hamerling, Netherlands --- http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to