Compiler bug?

  • 1
  • 2
  • 3
  • Page 1 of 3
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Compiler bug?

 · 
Posted: 25.08.2021 - 20:00  ·  #1
@ALL

in examining the compiler code I have identified a potential bug.

Has anyone imported 'STEPPORT' (as opposed to 'STEPPORTX', 'STEPPORTY' or 'STEPPORTZ')?

It seems to me that this cannot work.

Merlin.
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 59
Posts: 953
Registered: 09 / 2007
Subject:

Re: Compiler bug?

 · 
Posted: 25.08.2021 - 21:02  ·  #2
Hi Merlin,
... and a MCU change in the project has no more effect in the *.ppro project file.
DeviceId etc are not replaced.

miparo
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 25.08.2021 - 23:23  ·  #3
Hi Miparo.

Is this a new issue with the new compiler?

My comment relates to the old compiler too.

Regards
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 59
Posts: 953
Registered: 09 / 2007
Subject:

Re: Compiler bug?

 · 
Posted: 26.08.2021 - 14:08  ·  #4
Hi Merlin,
sorry.
This happens in the new compiler.

miparo
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 26.08.2021 - 18:16  ·  #5
@All

I have resolved the stepper issue. It was a semi-benign bug.

What I mean by that is that it might or might not cause the compiler to crash, but if it does not crash, the the resultant code will be correct. I have resolved the issue and it will be fixed in the next release.

I believe that I have seen reports of this kind of behaviour on this site, by I can't remember who reported it or where.

@Miparo, I believe I have resolved your issue. I will publish a fix shortly.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Compiler bug?

 · 
Posted: 26.08.2021 - 18:39  ·  #6
Hi Merlin,

I think you do a great job.
I'm very happy about your progress.

rolf
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1372
Registered: 03 / 2005
Subject:

Re: Compiler bug?

 · 
Posted: 26.08.2021 - 19:41  ·  #7
Thank you Rolf.
miparo
Administrator
Avatar
Gender:
Location: Germany
Age: 59
Posts: 953
Registered: 09 / 2007
Subject:

Re: Compiler bug?

 · 
Posted: 27.08.2021 - 20:37  ·  #8
Hi Merlin,
and the next one :)

Quote


type

tParmRecX = record
xProgVerStart : word;
end;

var
parX : array[0..59] of byte;
ParmRecX[@parX] : tParmRecX;
......
......
ProgVerStart : word;

begin
ProgVerStart:= ParmRecX.xProgVerStart;
^


miparo
  • 1
  • 2
  • 3
  • Page 1 of 3
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   134   148 · Page-Gen-Time: 0.022625s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI