Oleg Endo - 3 days ago

Note: The output in the original description above has been obtained with this patch applied https://sourceforge.net/p/sdcc/feature-requests/_discuss/thread/20d0835c81/6ce1/attachment/0001-issue-892-preserve-high-byte-of-gptr.patch

Without the patch it will output:

_my_data2:
    .byte __str_0, (__str_0 >> 8),#0x80
; generic printIvalPtr
    .byte #0xe0,#0x46,#0x16
    .byte #0xe0, #0x46, #0x16, #0x10    ; 269895392