Simple assignment seems inefficient?

Anonymous
2011-03-22
2013-03-12
  • Anonymous - 2011-03-22

    Hi there,
    I am using sdcc for gbz80. Had a look at the generated assembly and was surprised to see this code:

    ld hl,#_MY_GLOBAL_VAR
    ld a,(hl)

    Why is not simply this generated?

    ld a,(_MY_GLOBAL_VAR)

    Regards
    Johan

     
  • Anonymous - 2011-03-22

    Posting it as a bug in tracker.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks