Hi,
I have just compiled a project in V8 and have noticed i have used 100% Program space!
I also get this message at the bottom of the compiler report.
You have compiled in FREE mode.
Using Omniscient Code Generation that is available in PRO mode,
you could have produced up to 60% smaller and 400% faster code.
See http://www.microchip.com/MPLABXCcompilers for more information.
Can you advise me about premium compilers will they reduce program space usage?
which is the best to go for?
how do i install it into V8?
Cheers
Stuart Wili
Agri Samplers.
Run Out of Program Space on chip
Moderator: Benj
-
- Posts: 5
- Joined: Tue Sep 01, 2020 11:23 am
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Run Out of Program Space on chip
Hello
You will get a reduction in size, but it probably won't be as much as advertised.
Microchip have two options for the XC8 compiler which is not a cheap product.
There is a workstation licence
There is also a monthly subscription, but it looks like none are available.
If not done so before, you can get a 60 day trial.
Is it possible to make the code within your project more efficient?
Perhaps use fewer variables and use local instead of global variables.
Reuse the global variables for more than one function.
Use the smallest variables/arrays/strings possible.
If repeated functions, use more user call macros.
You will get a reduction in size, but it probably won't be as much as advertised.
Microchip have two options for the XC8 compiler which is not a cheap product.
There is a workstation licence
There is also a monthly subscription, but it looks like none are available.
If not done so before, you can get a 60 day trial.
Is it possible to make the code within your project more efficient?
Perhaps use fewer variables and use local instead of global variables.
Reuse the global variables for more than one function.
Use the smallest variables/arrays/strings possible.
If repeated functions, use more user call macros.
Martin