On 8/26/07, Vaclav Peroutka <[EMAIL PROTECTED]> wrote:
> Thank you for your answer. Is it possible to somehow optimize the code ? For 
> example I see a lot of BANKSELs - maybe sometimes where not necessary ( I did 
> not yet deeply analyzed the generated code).

Yes.  See the " --obanksel=" option.  It can reduce the code size a
lot.  Also there is a #pragma to tell the compiler where to place
static variables in memory.  You can avoid the BANKSELs by keeping the
variables in the same bank.

If you really need to save on code size, you can take the generated
.asm file and go through it, optimizing by hand.   (but you're not
really programming in C after this.)

Regards,
Mark
[EMAIL PROTECTED]
-- 
Mark Rages, Engineer
Midwest Telecine LLC
[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to