Skip to main content
Visitor II
August 24, 2005
Question

Problem with compiler

  • August 24, 2005
  • 14 replies
  • 2657 views
Posted on August 24, 2005 at 09:34

Problem with compiler

    This topic has been closed for replies.

    14 replies

    pbreaAuthor
    Visitor II
    August 24, 2005
    Posted on August 24, 2005 at 07:52

    Excuse me. I have posted the wrong text file!

    Now I post the correct version.

    Thanks

    ________________

    Attachments :

    main.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0CY&d=%2Fa%2F0X0000000bVG%2Fk506rHjft8ppStRfFEVueAi6Zm6j1Ll3fwGsJmpW.PM&asPdf=false
    pbreaAuthor
    Visitor II
    August 24, 2005
    Posted on August 24, 2005 at 07:55

    Excuse me but I have some problems with my browser!

    I hope this is the correct version!

    Bye.

    ________________

    Attachments :

    prog.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0CT&d=%2Fa%2F0X0000000bVD%2FYLF4JT1rPYNI6moTKpPHRirm0rvLI6B6lZ.C7H5r4eY&asPdf=false
    Visitor II
    August 24, 2005
    Posted on August 24, 2005 at 08:55

    Hi,

    now I hope I've got it:

    You can use the option -Cni (no integral promotion on characters) to avoid promotion of characters to integrals.

    Please note that there seams to be a fault in the manual regarding the two char multiplication with -Cni.

    To get the option above please follow the way:

    Edit & ''project'' Settings [Alt+F7] & Compiler for ST7

    and then select

    Options & Optimizations & [x] no integral promotion on characters

    That would suppress _CMPS. But I think you agree - the result is the same?

    Ciao

    WoRo

    pbreaAuthor
    Visitor II
    August 24, 2005
    Posted on August 24, 2005 at 09:34

    You are my salvation!

    Now all works correctly.

    Thanks.

    See you.