Optimizer compile time constants problem

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

Re: Optimizer compile time constants problem

 · 
Posted: 09.06.2014 - 15:04  ·  #9
Hi Rolf.

I think that it can be done by not substituting the constant value at compile time. Then the assembler will replace by the appropriate value.

Please see my pm for appropriate assembler instructions. I also think that my suggestion could be applied to all constants and make the assembler more readable.

Regards.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Optimizer compile time constants problem

 · 
Posted: 09.06.2014 - 16:05  ·  #10
Hello Merlin,

I will try to do it in this way.
Maybe it works with named constants.

rolf
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Optimizer compile time constants problem

 · 
Posted: 10.06.2014 - 11:18  ·  #11
@Rolf:
Thank you very much! New AvrCo from PM shows non-zero values which match the ones from ASM file.

@Merlin:
I get OptimiserRev=770 and OptimiserBuild=2816, which are $0302 and $0B00 from ASM file, but for MerlinOptimiser executable file properties show version 3.2.11.0. It seams a little different from CompilerRev where 504 translates to v5.0.4. My guess would be that I should look at individual bytes to form a version number, something like $03.$02.$0B.$00 should be translated to 3.2.11.0. Is this right?
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Optimizer compile time constants problem

 · 
Posted: 10.06.2014 - 12:10  ·  #12
Hi Avra.

Yes, this is absolutely right. It is in 4 byte format.
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Optimizer compile time constants problem

 · 
Posted: 10.06.2014 - 18:56  ·  #13
Thanks Merlin, it is all clear now.
  • 1
  • 2
  • Page 2 of 2
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   86   100 · Page-Gen-Time: 0.031075s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI