Am 19.02.2018 um 10:50 schrieb Maarten Brock: > > Do I understand correctly that your STM8 has code memory above 0xFFFF? So > the problem is that SDCC only generates 16 bit jump/call instructions and > thus cannot reach 0x10000 and above, but it can 'overflow' into that area. > > Does the STM8 have separate 24 bit jump/call instructions?
Yes. They are mostly ok, but function calls get awkward. Where it gets really awkward is data above 64K. > Or is it a > special mode like on the DS390? Or is one supposed to use bank switching? > And are there also STM8 versions with only memory below 64k? Only very few STM8 have memory above 64K. > I get the > feeling SDCC for STM8 will need a memory model option to target these two > situations. Yes. I guess we'd make the current one the medium model, then add a large model for 24-bit code space, then a huge model for 24-bit data space. Philipp ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user