compiler error?

12 views
Skip to first unread message

vsurducan

unread,
Apr 1, 2021, 3:56:57 AM4/1/21
to jal...@googlegroups.com
Hi all,
I'm not sure if this is a compiler error or maybe a file definition error? The error disappears if i'm comment part of the source code, aka making it smaller...it also runs ok.

Compilation started at :4/1/2021 10:54:36 AM
jal jalv25r4 (compiled Dec 26 2020)
Assertion failed!
[Error] (jalv2_64.exe.jal) [Line 0]
File: picbsrop.c, Line 57
Expression: data->ix < PIC_CODE_GOP_DEPTH
Compiler CommandLine:  C:\JALLIB~2.0\compiler\jalv2_64.exe "C:\cat\18F25k50_8adc_usb_serial.jal" -s "C:\cat" -no-variable-reuse  

Errors :0       Warnings :0
Code   :0/100    Data:0/100  Hardware Stack : 0/100  Software Stack :0






vsurducan

unread,
Apr 1, 2021, 5:45:20 AM4/1/21
to jal...@googlegroups.com
I was able to isolate the issue: it's created by the use of pragma inline within a procedure recurently called in the main program. 

It appears on more than one PIC (I've seen it with PIC18F25K50, PIC18F2550), but the program memory has to be used partially (between 0FFF to 1FFF to catch it , so it's not related by PIC definition file.

I would appreciate any feedback describing how to fix it on this issue (of course one is: do not use pragma inline...:)  )

Rob CJ

unread,
Apr 1, 2021, 1:06:15 PM4/1/21
to jal...@googlegroups.com
 Vasile,

Can you send me the program? I can then check where the assertion error occurs.

Thanks.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens vsurducan <vsur...@gmail.com>
Verzonden: donderdag 1 april 2021 09:56
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: [jallib] compiler 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 on the web visit https://groups.google.com/d/msgid/jallib/CAM%2Bj4quqk4Ov9OYnvfDo1%3DmmS6hMOb1P%2Bkbx44Rav8JkrjdfEw%40mail.gmail.com.

rob...@hotmail.com

unread,
Apr 3, 2021, 6:20:29 AM4/3/21
to jallib
Hello Vasile,

I have reported this problem as compiler issue #19 and also solved it.

The new version of the JAL compiler (jalv25r5) will be part of the next bee-package.

Kind regards,

Rob


Op donderdag 1 april 2021 om 09:56:57 UTC+2 schreef vasile:

vsurducan

unread,
Apr 3, 2021, 11:40:21 AM4/3/21
to jal...@googlegroups.com
Thank you Rob!
very fast and effective action...

--
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.
Reply all
Reply to author
Forward
0 new messages