Am 21.02.2018 um 22:34 schrieb Eric Rullens: > > All STM8 parts with more than 32 kB flash currently cannot be used to their > full potential with SDCC. > > Looking at the ST website, at the moment this means 58 of the 138 variants. > Including the interesting ones of course. ;-) > > A while ago I did some experiments (sadly not completed yet) by adding a 24 > bit mode to the SDCC STM8 port. Instead of CALL/RET, CALLF/RETF are emitted > and the stack calculations need to cope with 3 instead of 2 bytes for the > return. For the constants section I cheated a bit and made an option to > place this segment before the code segment, so for most (of my) programs no > further changes would be needed. > > Eric
Work on the feature request (https://sourceforge.net/p/sdcc/feature-requests/556/) has been progressing well. You can try it using current source (revision 10340 or newer). To enable support for the 24-bit space, use --model-large. Since you have previous experience with modifying SDCC for this, your comments (and possibly patches) would certainly be helpful. 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