User Activity

  • Modified a comment on discussion Help on Small Device C Compiler (SDCC)

    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.

  • Modified a comment on discussion Help on Small Device C Compiler (SDCC)

    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.

  • Posted a comment on discussion Help on Small Device C Compiler (SDCC)

    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.

  • Modified a comment on discussion Open Discussion on Small Device C Compiler (SDCC)

    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.

  • Posted a comment on discussion Open Discussion on Small Device C Compiler (SDCC)

    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.

  • Modified a comment on discussion Open Discussion on Small Device C Compiler (SDCC)

    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...

  • Modified a comment on discussion Open Discussion on Small Device C Compiler (SDCC)

    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.

  • Modified a comment on discussion Open Discussion on Small Device C Compiler (SDCC)

    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.

View All

Personal Data

Username:
gzaffin
Joined:
2014-10-09 09:36:09

Projects

  • No projects to display.

Personal Tools