sample compilation with "out of data space" error

12 views
Skip to first unread message

vsurducan

unread,
Nov 11, 2024, 8:36:51 AM11/11/24
to jal...@googlegroups.com
Hi Rob,
I've tried to compile today the 16f1823_nrf905.jal taken from the jallib-1.9.0 pack.
Compiler reported "out of data space error!" which seems like the compiler got tricked by something.
The same result using any older compiler down to jallib-1.4.0 pack.
If I change in the sample file the microcontroller definition from 16f1823.jal to 16f1825.jal, it compiles without error.
However, I recall that I was able to compile this sample a while ago without errors.
Any ideas? Thx.

Rob CJ

unread,
Nov 12, 2024, 12:41:49 PM11/12/24
to jal...@googlegroups.com
Hi Vasile,

I know why that is. I saw in one of your screenshots of JALEdit that you selected to disable re-use of variables.

You have to enable that otherwise it runs out of dataspace. The default of the compiler (I use Visual Studio and compile with the default settings) is that it re-uses variables.

And that brings me to another change I need to make. I need to include that in the sample program.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens vsurducan <vsur...@gmail.com>
Verzonden: maandag 11 november 2024 14:40
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: [jallib] sample compilation with "out of data space" error
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jallib/CAM%2Bj4qtYk5dMJx_idUFDZT688uatro9Le%2Bn%2BhPbqKf7mDdH0mg%40mail.gmail.com.

vsurducan

unread,
Nov 12, 2024, 12:52:45 PM11/12/24
to jal...@googlegroups.com
Hi Rob,
yep, it compiles with no errors with "disable re-use of variables" deselected.

However the paired sample,  16f1825_nrf905.jal can be compiled without errors with "disable re-use of variables" selected...
So this feature remains a big unknown...:)
thx


Rob CJ

unread,
Nov 12, 2024, 1:23:18 PM11/12/24
to jal...@googlegroups.com
Hi Vasile,

That is because the 16f1825 has more data space.

16f1823 has 128 bytes
16f1825 has 1024 bytes

🙂

Kind regards,

Rob


Verzonden: dinsdag 12 november 2024 18:56
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: Re: [jallib] sample compilation with "out of data space" error
 
Reply all
Reply to author
Forward
0 new messages