This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Big ERROR in C166 4v20

Hi,

there is huge misunderstood in C166, just try this:

#pragma code // and

char * cptr; // and this:


cptr[-1]=*cptr++;

and look at the assmbled machine code.
and ... have a lot of fun ...

Parents
  • I will only say that:

    I advice you to check how work more professional compilers (and not so expensive) like GNU CC (well known as "gcc" i.e. under linux) and if you will ever port some source I wish you good luck, by the way, this statement will work fine:

    *cptr++=cptr[1];

    so don't tell me those b.. s.. about cptr's in one line.
    and my error was that I didn't say about default memory model.

Reply
  • I will only say that:

    I advice you to check how work more professional compilers (and not so expensive) like GNU CC (well known as "gcc" i.e. under linux) and if you will ever port some source I wish you good luck, by the way, this statement will work fine:

    *cptr++=cptr[1];

    so don't tell me those b.. s.. about cptr's in one line.
    and my error was that I didn't say about default memory model.

Children
No data