This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • I thought the changing the memory model from HCompact to HLarge (at least) should not break it...

    And in all likelihood it didn't. It was quite probably broken already, but just so happened to work nevertheless.

    Less-than-careful use of pointer voodoo, particularly any casts that modify memory space qualifiers, will do that to your code rather easily. In the case at hand, since it's the size of function pointers you changed, the effected pointers would probably be function pointers.

Reply
  • I thought the changing the memory model from HCompact to HLarge (at least) should not break it...

    And in all likelihood it didn't. It was quite probably broken already, but just so happened to work nevertheless.

    Less-than-careful use of pointer voodoo, particularly any casts that modify memory space qualifiers, will do that to your code rather easily. In the case at hand, since it's the size of function pointers you changed, the effected pointers would probably be function pointers.

Children