Vanilla ASxxxx assembler/linker has assembly directives for bits addressing mode. I've never used them. I don't know much how SDCC manage addressing/relocable addressing.
Vanilla ASxxxx assembler/linker has a assembly directives for bits addressing mode. I've never used them. I don't know much how SDCC manage addressing/relocable addressing.
Vanilla ASxxx assembler/linker has a assembly directives for bits addressing mode. I've never used them. I don't know much how SDCC manage addressing/relocable addressing.
Yes, You see what is a file scope const definition and what is a file scope definition which allows following assignments. And You see that pointers at file scope are compiled into labels and .dw assembly directives, while pointers in block/function scope are compiled in stack usage, pop/push operands and 16-bits registers pairs operations.
Yes, You see that pointers at file scope are compiled into labels and .dw assembly directives, while pointers in block/function scope are compiled in stack usage, pop/push operands and 16-bits registers pairs operations.
Hi Pål, I was trying to convey the idea that such declarations which are also definitions const char* const pTxt1 = { const_txt }; and const char* const pTxt2 = const_txt; indeed, when they appear at file scope, are the same. So pTxt1 and pTxt2 are compiled into labels, then linking process can place them into ROM spaces. On the other side, in the very special case that You presented, inside main function pTxt2 = const_txt; it is an assignment statement, not a declaration statement, and so it is...
Hi, try with Compiler Explorer, by clicking to this link I hope this suggestion can be helpful, Giangiacomo P.S. Please note that output is much more readable after assembly Directives and Unused labels are unchecked from Compiler output filters drop down menu.
Hi, try with Compiler Explorer, by clicking to this link I hope this suggestion can be helpful, Giangiacomo P.S. Please note that output is much more readable after assembly Directives and Unused labels are unchecked from Compiler output filters drop down menu.