Good day,all I am currently involving in a project by using PIC16F1509.( the PIC16F1509 PDF: http://www.kynix.com/uploadfiles/pdf8798/PIC16F1509-E2fML.pdf ) I compiled it pass hi-tech9.83. However, there are about 100 lines can’t compile into the 8K room. The direct compile can’t be passed because the room to save codes is not enough. Can anyone give me some feasible suggestions so that I needn’t choose chip again. Please give me some advice in choosing compiler, code optimization or coding ! Thanks again ! Best regards~
Is your entire code just 100 lines? The only way to fill 8kB with 100 lines of code is to use expensive library functions like printf() or floating point math. You should avoid these. But it's hard to help without seeing your code.
Without showing us you code, it's nearly impossible to give good advice how to save code. One idea ist to put some identical blocks of code into a subfunction. What optimization setting of HiTech 9.83 do you actually use? Do you have free version ("Lite mode") or "Pro" version (not free, you have to pay for). The "Pro" version does higher optimization. See: http://www.microchip.com/forums/m731823.aspx Yours
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.