Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#22 new book about using C with 8051

None
closed
nobody
Website (34)
5
2013-08-01
2004-12-09
Anonymous
No

If you choose to reference books on your site, you might
link my new book's page: www.candthe8051.com. The
book replaces and combines earlier out of print editions
with 50% more material about serial comm and
networking and is only $39US.
Tom Schultz
schultz@pei.sympatico.ca

Discussion

  • Logged In: YES
    user_id=589052

    Hi Tom,
    thanks for your request,
    unfortunately a list of 8051 books would be
    difficult to keep up to date, maybe the SDCC
    manual should instead give link to
    http://www.8052.com/books.phtml

    Your book uses the Keil specific syntax
    for SFR declarations:
    (see f.e. figure 29.22 in
    http://www.candthe8051.com/C30pg338.pdf\)

    "sfr16 TREG2=0xcc;"

    While SDCC supports sfr16 and sfr32 (even
    for SFRs like timer0 and timer1 where
    addresses are not adjacent), it (C-ishly)
    interprets this as the declaration of an
    initialized identifier (like: "int i = 0xcc;")
    and thus does not do what the user expects.

    Therefore I'd like to draw your attention
    to the file compiler.h:

    By including this file you could share a
    single header file with different compilers.

    You'd gain compatibility for
    SDCC, Keil, Raisonance, IAR, Hi-Tech, Tasking,
    Crossware, Wickenhäuser.
    http://svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/include/mcs51/compiler.h?view=markup

    Greetings,

    Frieder

     
  • Borut Ražem
    Borut Ražem
    2012-02-28

    From the web page I haven't found anything about sdcc.

    Borut

     
  • Borut Ražem
    Borut Ražem
    2012-02-28

    • status: open --> pending-rejected
     
  • Maarten Brock
    Maarten Brock
    2013-08-01

    • status: pending-rejected --> closed
    • Group: -->