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

Compilation Problem with SDA555x TVText Pro

Dear Sir/Madam

I am using uvision to plan a software project which SDA555X TVText Pro from Infineon has been used in it.
Now the volume of the program has been reached larger than 64KBytes and uvision messages me the error.
So, would you please advise me how i can manage the settings of the uvision to handle this situation.

Thanks and best regards

Faranak Mahjoobi

Parents
  • There are a number of ways to reduce program size:

    1. Use the SMALL memory model and manually locate all large buffers in PDATA or XDATA.

    2. Use the highest compiler optimizer level (11).

    3. Use Linker Code Packing (available only in PK51) to optimize jumps and calls into AJMPs and ACALLs where possible and to create functions from common code sequences.

    4. Look at the algorithms you use to do things. In most of the applications that I get paid to shrink, the algorithms used are POORLY thought out and can easily be optimized.

    5. Learn how the compiler works and what it does to optimize and take advantage of these things. For example, the compiler passes up to 3 function arguments in registers. So, if you consistently create functions with 6 or 7 registers, you are making your program bigger than it must be.

    Jon

Reply
  • There are a number of ways to reduce program size:

    1. Use the SMALL memory model and manually locate all large buffers in PDATA or XDATA.

    2. Use the highest compiler optimizer level (11).

    3. Use Linker Code Packing (available only in PK51) to optimize jumps and calls into AJMPs and ACALLs where possible and to create functions from common code sequences.

    4. Look at the algorithms you use to do things. In most of the applications that I get paid to shrink, the algorithms used are POORLY thought out and can easily be optimized.

    5. Learn how the compiler works and what it does to optimize and take advantage of these things. For example, the compiler passes up to 3 function arguments in registers. So, if you consistently create functions with 6 or 7 registers, you are making your program bigger than it must be.

    Jon

Children