Menu

#2011 code pointer initialization causes debug? output

open
nobody
PIC16
5
2015-03-25
2012-04-20
No

when referencing a structure element in a __code constant, sdcc outputs a (debug?) message stating that a generic pointer was initialized with an unknown storage class (and that it correctly assumes code space)

SDCC : mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08 3.1.0 #7066 (Feb 21 2012) (Linux)

sdcc --use-non-free -mpic16 bug04.c
pic16_printGPointerType: initialized generic pointer with unknown storage class assumes object in code space
pic16_printGPointerType: initialized generic pointer with unknown storage class assumes object in code space

Discussion

  • Herbert Pötzl

    Herbert Pötzl - 2012-04-20

    example code

     
  • Ben Shi

    Ben Shi - 2015-03-25
    • Category: --> PIC16
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.