Error generating code with the compiler 7.1.0

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
SVG-FLIM
Posts: 4
Joined: 17 Sep 2018 13:10

Error generating code with the compiler 7.1.0

#1 Post by SVG-FLIM » 17 Sep 2018 13:23

Hello !
Again, a lot of time was killed to find another error of the compiler mikroPacal PRO for AVR.
A simple example:
=============================
program BAG3;
type
     TRecX = record
             a, b, c: byte;
             aa, bb, cc: word;
     end;
var
     v1, v2: TRecX;
begin
     v1: = v2;
end.
=============================


The essence of the error in the incorrect use of registers for passing parameters to the function ___CA2AW
There's confusion.
The function itself expects source-target address parameters in registers 26-27 (X) 28-29 (Y)

In the file BAG3.asm - 26-27 (X) 30-31 (Z)
In the file BAG3.lst - 26-27 (X) 28-30 ????

Later I found that in the version 6.1.0 of the compiler there is no such error !
Installed mikroC PRO for AVR There is no such error !
I attach the screens.
Attachments
C3.jpg
C3.jpg (70.23 KiB) Viewed 2034 times
A4-ERR.jpg
A4-ERR.jpg (118.5 KiB) Viewed 2034 times
A3.jpg
A3.jpg (97.13 KiB) Viewed 2041 times

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

Re: Error generating code with the compiler 7.1.0

#2 Post by filip » 18 Sep 2018 10:01

Hi,

Yes, you are right about this error,I have forwarded this to our developers.
I believe that you have the issue raised on our HelpDesk, so lets continue there.

Regards,
Filip.

SVG-FLIM
Posts: 4
Joined: 17 Sep 2018 13:10

Re: Error generating code with the compiler 7.1.0

#3 Post by SVG-FLIM » 18 Sep 2018 10:15

filip wrote:Hi,

Yes, you are right about this error,I have forwarded this to our developers.
I believe that you have the issue raised on our HelpDesk, so lets continue there.

Regards,
Filip.
It's all very nice, of course, that the error will ever be corrected.
But!
I purchased your compiler for money - a commercial product.
That is, you have benefited.
I'm losing her because of your mistakes.
This is unfair.
Making such errors in the updated versions is simply unacceptable!
I looked through the forum.
There are still many unresolved issues.
And it's unclear when they will be solved.
I suggest once again - let's look at the source of the system libraries together and quickly correct existing errors.
Errors that interfere with our work.

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

Re: Error generating code with the compiler 7.1.0

#4 Post by filip » 19 Sep 2018 11:31

Hi,

We are aware of your urgency, please find in the attachment the compiler's command line that works OK.
Copy it in the \Mikroelektronika\mikroPascal PRO for AVR\ folder instead of the existing one (backup just in case).

Regards,
Filip.
Attachments
mPAvr.rar
(554.71 KiB) Downloaded 108 times

Post Reply

Return to “mikroPascal PRO for AVR General”