C167: HLarge does not work

Hi all,

I work with ST10F269 cpu for 5 years and used HCompact memory model all the time. Everything worked as intended. Now my project does not fit HCompact anymore and I've switched to HLarge. It compiles, but does not work. The same program which works fine when compiled with HCompact does not work (jumps to nowhere) if I compile it by changing ONLY the memory model setting to HLarge.

Could anybody give a direction please?

Thanks!

Parents
  • Now my project does not fit HCompact anymore and I've switched to HLarge

    That was likely not the best possible reaction at that point. Switching the memory model for the entire program like that will make it bigger and slower. You probably shouldn't have gone to HCompact in the first place, for the same reason. Your program would be smaller now if you hadn't enlarged it so by going to HCompact. The usual trick it to stick with the smallest memory model you can possibly manage, and handle the excess by moving some objects into bigger memory spaces.

    It compiles, but does not work.

    And that's really you can say about how it failed: "does not work"?

Reply
  • Now my project does not fit HCompact anymore and I've switched to HLarge

    That was likely not the best possible reaction at that point. Switching the memory model for the entire program like that will make it bigger and slower. You probably shouldn't have gone to HCompact in the first place, for the same reason. Your program would be smaller now if you hadn't enlarged it so by going to HCompact. The usual trick it to stick with the smallest memory model you can possibly manage, and handle the excess by moving some objects into bigger memory spaces.

    It compiles, but does not work.

    And that's really you can say about how it failed: "does not work"?

Children
More questions in this forum