On Dec 5, 2008, at 11:02 AM, Frieder Ferlemann wrote: >> instructions. The 87C751 doesn't implement LCALL or LJMP (nor MOVX >> for that matter) because it has only 2KB of on-chip code memory and >> no external RAM capabilities. If memory serves, the offset width for >> ACALL and AJMP is 11 bits, which should be enough to cover the entire >> 2KB code space on this chip. So...can SDCC be told to only generate >> ACALL instructions if the target address is within range? > > use option --acall-ajmp :^)
This seems to work as advertised; my code segment is 51 bytes smaller and the lcall/ljmp instructions are now acalls and ajmps. Thanks!! -Dave -- Dave McGuire Port Charlotte, FL ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user